#[non_exhaustive]pub enum San {
Dns(String),
Email(String),
Uri(String),
Ip(IpAddr),
Upn(String),
Other {
oid: String,
der: Vec<u8>,
},
}Expand description
A subject alternative name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dns(String)
A dNSName. Some issuers put an IP address here, for clients that do not read IP
SANs; San::ip gives it as an address.
Email(String)
An rfc822Name (email).
Uri(String)
A uniformResourceIdentifier.
Ip(IpAddr)
An iPAddress.
Upn(String)
A Microsoft user principal name (otherName 1.3.6.1.4.1.311.20.2.3).
Other
Any other otherName: its OID and the DER of its value.
Implementations§
Trait Implementations§
impl Eq for San
impl StructuralPartialEq for San
Auto Trait Implementations§
impl Freeze for San
impl RefUnwindSafe for San
impl Send for San
impl Sync for San
impl Unpin for San
impl UnsafeUnpin for San
impl UnwindSafe for San
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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