Enum picky_asn1_x509::name::GeneralName
source · 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§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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)