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
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)