pub enum GeneralName {
OtherName(OtherName),
Rfc822Name(Ia5StringAsn1),
DnsName(Ia5StringAsn1),
DirectoryName(Name),
EdiPartyName(EdiPartyName),
Uri(Ia5StringAsn1),
IpAddress(OctetStringAsn1),
RegisteredId(ObjectIdentifierAsn1),
}
Expand description
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 }
Variants§
OtherName(OtherName)
Rfc822Name(Ia5StringAsn1)
DnsName(Ia5StringAsn1)
DirectoryName(Name)
EdiPartyName(EdiPartyName)
Uri(Ia5StringAsn1)
IpAddress(OctetStringAsn1)
RegisteredId(ObjectIdentifierAsn1)
Implementations§
Source§impl GeneralName
impl GeneralName
pub fn new_edi_party_name<PN, NA>( party_name: PN, name_assigner: Option<NA>, ) -> Self
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<'de> Deserialize<'de> for GeneralName
impl<'de> Deserialize<'de> for GeneralName
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Name> for GeneralName
impl From<Name> for GeneralName
Source§impl PartialEq for GeneralName
impl PartialEq for GeneralName
Source§impl Serialize for GeneralName
impl Serialize for GeneralName
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for GeneralName
impl StructuralPartialEq 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 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