#[non_exhaustive]pub enum GeneralName<'a> {
Other {
type_id: Oid<'a>,
value: &'a [u8],
},
Email(&'a str),
Dns(&'a str),
X400(&'a [u8]),
Directory(Name<'a>),
EdiParty(&'a [u8]),
Uri(&'a str),
IpAddress(&'a [u8]),
RegisteredId(Oid<'a>),
}Expand description
One name, in whichever of the forms the schema allows.
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.
Other
A form defined elsewhere, kept as its identifier and its value.
Email(&'a str)
An electronic mail address.
Dns(&'a str)
A domain name.
X400(&'a [u8])
An X.400 address, kept as encoded because nothing here reads one.
Directory(Name<'a>)
A distinguished name, the same kind a certificate’s subject is.
EdiParty(&'a [u8])
An EDI party name, kept as encoded.
Uri(&'a str)
A location, which is text and is never fetched.
IpAddress(&'a [u8])
An address, as the four or sixteen bytes it is written in. In a name constraint this is twice that, the address and then its mask.
RegisteredId(Oid<'a>)
A name that is itself an identifier.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for GeneralName<'a>
impl<'a> RefUnwindSafe for GeneralName<'a>
impl<'a> Send for GeneralName<'a>
impl<'a> Sync for GeneralName<'a>
impl<'a> Unpin for GeneralName<'a>
impl<'a> UnsafeUnpin for GeneralName<'a>
impl<'a> UnwindSafe for GeneralName<'a>
Blanket Implementations§
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