Enum gmime::Validity[][src]

pub enum Validity {
    Unknown,
    Undefined,
    Never,
    Marginal,
    Full,
    Ultimate,
    // some variants omitted
}

The validity level of a certificate's User ID. Validity level tries to answer the question: "How strongly do we believe that this certificate belongs to the party it says it belongs to?"

Note that some OpenPGP certificates have multiple User IDs, and each User ID may have a different validity level (e.g. depending on which third parties have certified which User IDs, and which third parties the local user has chosen to trust).

Similarly, an X.509 certificate can have multiple SubjectAltNames, and each name may also have a different validity level (e.g. if the issuing CA is bound by name constraints).

Note that the GMime API currently only exposes the highest-validty User ID for any given certificate.

Variants

Trait Implementations

impl Clone for Validity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Validity
[src]

impl Debug for Validity
[src]

Formats the value using the given formatter. Read more

impl Eq for Validity
[src]

impl PartialEq for Validity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Validity
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Validity

impl Sync for Validity