pub enum GeneralName {
OtherName(OtherName),
Rfc822Name(Ia5String),
DnsName(Ia5String),
DirectoryName(Name),
EdiPartyName(EdiPartyName),
UniformResourceIdentifier(Ia5String),
IpAddress(OctetString),
RegisteredId(ObjectIdentifier),
}Expand description
GeneralName as defined in RFC 5280 Section 4.2.1.6.
GeneralName ::= CHOICE {
otherName [0] OtherName,
rfc822Name [1] IA5String,
dNSName [2] IA5String,
x400Address [3] ORAddress,
directoryName [4] Name,
ediPartyName [5] EDIPartyName,
uniformResourceIdentifier [6] IA5String,
iPAddress [7] OCTET STRING,
registeredID [8] OBJECT IDENTIFIER
}This implementation does not currently support the x400Address choice.
Variants§
OtherName(OtherName)
Rfc822Name(Ia5String)
DnsName(Ia5String)
DirectoryName(Name)
EdiPartyName(EdiPartyName)
UniformResourceIdentifier(Ia5String)
IpAddress(OctetString)
RegisteredId(ObjectIdentifier)
Trait Implementations§
Source§impl<'__der_lifetime> Choice<'__der_lifetime> for GeneralName
impl<'__der_lifetime> Choice<'__der_lifetime> for GeneralName
Source§impl Clone for GeneralName
impl Clone for GeneralName
Source§fn clone(&self) -> GeneralName
fn clone(&self) -> GeneralName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneralName
impl Debug for GeneralName
Source§impl<'__der_lifetime> Decode<'__der_lifetime> for GeneralName
impl<'__der_lifetime> Decode<'__der_lifetime> for GeneralName
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for GeneralName
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for GeneralName
Source§impl<'__der_lifetime> EncodeValue for GeneralName
impl<'__der_lifetime> EncodeValue for GeneralName
impl Eq for GeneralName
Source§impl From<IpAddr> for GeneralName
impl From<IpAddr> for GeneralName
Source§fn from(ip: IpAddr) -> GeneralName
fn from(ip: IpAddr) -> GeneralName
Converts to this type from the input type.
Source§impl<'__der_lifetime> IsConstructed for GeneralName
impl<'__der_lifetime> IsConstructed for GeneralName
Source§const CONSTRUCTED: bool = true
const CONSTRUCTED: bool = true
ASN.1 constructed bit
Source§impl PartialEq for GeneralName
impl PartialEq for GeneralName
impl StructuralPartialEq for GeneralName
Source§impl<'__der_lifetime> Tagged for GeneralName
impl<'__der_lifetime> Tagged for GeneralName
Auto Trait Implementations§
impl Freeze for GeneralName
impl RefUnwindSafe for GeneralName
impl Send for GeneralName
impl Sync for GeneralName
impl Unpin for GeneralName
impl UnsafeUnpin for GeneralName
impl UnwindSafe for GeneralName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more