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 copy 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 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 EncodeValue for GeneralName
impl EncodeValue for GeneralName
source§impl From<IpAddr> for GeneralName
Available on crate feature std
only.
impl From<IpAddr> for GeneralName
Available on crate feature
std
only.source§impl PartialEq for GeneralName
impl PartialEq for GeneralName
source§fn eq(&self, other: &GeneralName) -> bool
fn eq(&self, other: &GeneralName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Tagged for GeneralName
impl Tagged for GeneralName
source§impl ValueOrd for GeneralName
impl ValueOrd for GeneralName
impl Eq for GeneralName
impl StructuralEq for GeneralName
impl StructuralPartialEq for GeneralName
Auto Trait Implementations§
impl RefUnwindSafe for GeneralName
impl Send for GeneralName
impl Sync for GeneralName
impl Unpin 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> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
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 value to the provided byte slice, returning a sub-slice
containing the encoded message.