logo
pub enum ParsedExtension<'a> {
Show 23 variants UnsupportedExtension { oid: Oid<'a>, }, ParseError { error: Err<Error>, }, AuthorityKeyIdentifier(AuthorityKeyIdentifier<'a>), SubjectKeyIdentifier(KeyIdentifier<'a>), KeyUsage(KeyUsage), CertificatePolicies(Vec<PolicyInformation<'a>, Global>), PolicyMappings(PolicyMappings<'a>), SubjectAlternativeName(SubjectAlternativeName<'a>), IssuerAlternativeName(IssuerAlternativeName<'a>), BasicConstraints(BasicConstraints), NameConstraints(NameConstraints<'a>), PolicyConstraints(PolicyConstraints), ExtendedKeyUsage(ExtendedKeyUsage<'a>), CRLDistributionPoints(Vec<CRLDistributionPoint<'a>, Global>), InhibitAnyPolicy(InhibitAnyPolicy), AuthorityInfoAccess(AuthorityInfoAccess<'a>), NSCertType(NSCertType), NsCertComment(&'a str), CRLNumber(BigUint), ReasonCode(ReasonCode), InvalidityDate(ASN1Time), SCT(Vec<SignedCertificateTimestamp<'a>, Global>), Unparsed,
}
Available on crate feature mtls only.

Variants

UnsupportedExtension

Fields

oid: Oid<'a>

Crate parser does not support this extension (yet)

ParseError

Fields

error: Err<Error>

AuthorityKeyIdentifier(AuthorityKeyIdentifier<'a>)

Section 4.2.1.1 of rfc 5280

SubjectKeyIdentifier(KeyIdentifier<'a>)

Section 4.2.1.2 of rfc 5280

KeyUsage(KeyUsage)

Section 4.2.1.3 of rfc 5280

CertificatePolicies(Vec<PolicyInformation<'a>, Global>)

Section 4.2.1.4 of rfc 5280

PolicyMappings(PolicyMappings<'a>)

Section 4.2.1.5 of rfc 5280

SubjectAlternativeName(SubjectAlternativeName<'a>)

Section 4.2.1.6 of rfc 5280

IssuerAlternativeName(IssuerAlternativeName<'a>)

Section 4.2.1.7 of rfc 5280

BasicConstraints(BasicConstraints)

Section 4.2.1.9 of rfc 5280

NameConstraints(NameConstraints<'a>)

Section 4.2.1.10 of rfc 5280

PolicyConstraints(PolicyConstraints)

Section 4.2.1.11 of rfc 5280

ExtendedKeyUsage(ExtendedKeyUsage<'a>)

Section 4.2.1.12 of rfc 5280

CRLDistributionPoints(Vec<CRLDistributionPoint<'a>, Global>)

Section 4.2.1.13 of rfc 5280

InhibitAnyPolicy(InhibitAnyPolicy)

Section 4.2.1.14 of rfc 5280

AuthorityInfoAccess(AuthorityInfoAccess<'a>)

Section 4.2.2.1 of rfc 5280

NSCertType(NSCertType)

Netscape certificate type (subject is SSL client, an SSL server, or a CA)

NsCertComment(&'a str)

Netscape certificate comment

CRLNumber(BigUint)

Section 5.3.1 of rfc 5280

ReasonCode(ReasonCode)

Section 5.3.1 of rfc 5280

InvalidityDate(ASN1Time)

Section 5.3.3 of rfc 5280

SCT(Vec<SignedCertificateTimestamp<'a>, Global>)

rfc 6962

Unparsed

Unparsed extension (was not requested in parsing options)

Implementations

Return true if the extension is unsupported

Return a reference on the parsing error if the extension parsing failed

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts self into a collection.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more