Expand description
Choosing an account from the named fields of a credential, such as a certificate’s.
A provider that reads a certificate gets a map of field names to values (subject.cn,
san.email, san.upn, fingerprint, as coqui-peer-tls’s CertificateFields::to_map
writes it) and a list of Picks from its configuration. pick tries them in order and
says which Lookup the credential names.
Structs§
- Pick
- One way to name the account: a field of the credential, and what that field is in the directory.
Enums§
Constants§
- DNS_
IP_ FIELD - The field DNS names that are IP literals are listed under, beside
san.dns. - IP_
FIELD - The field IP address names are listed under.
Traits§
- Pick
Setters - The typed setters of
Pick, for any builder that holds its settings.
Functions§
- pick
- Tries each of
orderagainstfields, first to last: the first that finds one value decides, one that finds two different values isPicked::Ambiguous, and none finding any isPicked::Absent.