MCPcopy Create free account
hub / github.com/OpenKeyring/oak-keyring / fields_to_payload

Function fields_to_payload

src/executor/import_export.rs:502–533  ·  view source on GitHub ↗

Convert a HashMap of fields into an EncryptedPayload for the given credential type. This is a best-effort mapping that populates standard fields based on the credential type. Fields not recognized are ignored.

(
    cred_type: CredentialType,
    fields: &std::collections::HashMap<String, String>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

getMethod · 0.45