pub enum DirectoryString {
PrintableString(PrintableStringAsn1),
Utf8String(String),
BmpString(BmpStringAsn1),
}
Expand description
TeletexString, UniversalString and BmpString are not supported.
DirectoryString ::= CHOICE {
teletexString TeletexString (SIZE (1..MAX)),
printableString PrintableString (SIZE (1..MAX)),
universalString UniversalString (SIZE (1..MAX)),
utf8String UTF8String (SIZE (1..MAX)),
bmpString BMPString (SIZE (1..MAX)) }
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DirectoryString
impl Clone for DirectoryString
Source§fn clone(&self) -> DirectoryString
fn clone(&self) -> DirectoryString
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 DirectoryString
impl Debug for DirectoryString
Source§impl<'de> Deserialize<'de> for DirectoryString
impl<'de> Deserialize<'de> for DirectoryString
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 Display for DirectoryString
impl Display for DirectoryString
Source§impl From<&str> for DirectoryString
impl From<&str> for DirectoryString
Source§impl From<BmpStringAsn1> for DirectoryString
impl From<BmpStringAsn1> for DirectoryString
Source§fn from(string: BmpStringAsn1) -> Self
fn from(string: BmpStringAsn1) -> Self
Converts to this type from the input type.
Source§impl From<DirectoryString> for String
impl From<DirectoryString> for String
Source§fn from(ds: DirectoryString) -> Self
fn from(ds: DirectoryString) -> Self
Converts to this type from the input type.
Source§impl From<PrintableStringAsn1> for DirectoryString
impl From<PrintableStringAsn1> for DirectoryString
Source§fn from(string: PrintableStringAsn1) -> Self
fn from(string: PrintableStringAsn1) -> Self
Converts to this type from the input type.
Source§impl From<RestrictedString<PrintableCharSet>> for DirectoryString
impl From<RestrictedString<PrintableCharSet>> for DirectoryString
Source§fn from(string: PrintableString) -> Self
fn from(string: PrintableString) -> Self
Converts to this type from the input type.
Source§impl From<RestrictedString<Utf8CharSet>> for DirectoryString
impl From<RestrictedString<Utf8CharSet>> for DirectoryString
Source§fn from(string: Utf8String) -> Self
fn from(string: Utf8String) -> Self
Converts to this type from the input type.
Source§impl From<String> for DirectoryString
impl From<String> for DirectoryString
Source§impl PartialEq for DirectoryString
impl PartialEq for DirectoryString
Source§impl Serialize for DirectoryString
impl Serialize for DirectoryString
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 DirectoryString
impl StructuralPartialEq for DirectoryString
Auto Trait Implementations§
impl Freeze for DirectoryString
impl RefUnwindSafe for DirectoryString
impl Send for DirectoryString
impl Sync for DirectoryString
impl Unpin for DirectoryString
impl UnwindSafe for DirectoryString
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