Enum x509_certificate::rfc3280::GeneralName
source · pub enum GeneralName {
OtherName(AnotherName),
Rfc822Name(Ia5String),
DnsName(Ia5String),
X400Address(OrAddress),
DirectoryName(Name),
EdiPartyName(EdiPartyName),
UniformResourceIdentifier(Ia5String),
IpAddress(OctetString),
RegisteredId(Oid),
}
Expand description
General name.
GeneralName ::= CHOICE {
otherName [0] AnotherName,
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 }
Variants§
OtherName(AnotherName)
Rfc822Name(Ia5String)
DnsName(Ia5String)
X400Address(OrAddress)
DirectoryName(Name)
EdiPartyName(EdiPartyName)
UniformResourceIdentifier(Ia5String)
IpAddress(OctetString)
RegisteredId(Oid)
Implementations§
source§impl GeneralName
impl GeneralName
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S> ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
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 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 ==
.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