Skip to main content

Module pick

Module pick 

Source
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§

Picked
What pick decided.

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§

PickSetters
The typed setters of Pick, for any builder that holds its settings.

Functions§

pick
Tries each of order against fields, first to last: the first that finds one value decides, one that finds two different values is Picked::Ambiguous, and none finding any is Picked::Absent.