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 not stored for this graph (policy: none)