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§fn eq(&self, other: &DirectoryString) -> bool
fn eq(&self, other: &DirectoryString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
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
)