pub struct CertIdentity {
pub subject_dn: String,
pub common_name: Option<String>,
pub sans: Vec<String>,
pub issuer_dn: String,
}Expand description
Identity extracted from a successfully validated client certificate.
Fields§
§subject_dn: StringFull Distinguished Name of the subject (e.g. "CN=alice, O=Example Corp").
common_name: Option<String>Common Name (CN) extracted from the subject, if present.
sans: Vec<String>Subject Alternative Names collected from the SAN extension, if present.
Each entry is prefixed with its type: "dns:host.example.com",
"email:user@example.com", "ip:192.0.2.1".
issuer_dn: StringFull Distinguished Name of the issuer.
Trait Implementations§
Source§impl Clone for CertIdentity
impl Clone for CertIdentity
Source§fn clone(&self) -> CertIdentity
fn clone(&self) -> CertIdentity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CertIdentity
impl RefUnwindSafe for CertIdentity
impl Send for CertIdentity
impl Sync for CertIdentity
impl Unpin for CertIdentity
impl UnsafeUnpin for CertIdentity
impl UnwindSafe for CertIdentity
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more