pub enum DisplayText {
Ia5String(Ia5String),
Utf8String(String),
}Expand description
DisplayText as defined in RFC 5280 Section 4.2.1.4.
DisplayText ::= CHOICE {
ia5String IA5String (SIZE (1..200)),
visibleString VisibleString (SIZE (1..200)),
bmpString BMPString (SIZE (1..200)),
utf8String UTF8String (SIZE (1..200))
}Only the ia5String and utf8String options are currently supported.
Variants§
Trait Implementations§
Source§impl<'__der_lifetime> Choice<'__der_lifetime> for DisplayText
impl<'__der_lifetime> Choice<'__der_lifetime> for DisplayText
Source§impl Clone for DisplayText
impl Clone for DisplayText
Source§impl Debug for DisplayText
impl Debug for DisplayText
Source§impl<'__der_lifetime> Decode<'__der_lifetime> for DisplayText
impl<'__der_lifetime> Decode<'__der_lifetime> for DisplayText
Source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for DisplayText
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for DisplayText
Source§impl<'__der_lifetime> EncodeValue for DisplayText
impl<'__der_lifetime> EncodeValue for DisplayText
impl Eq for DisplayText
Source§impl<'__der_lifetime> IsConstructed for DisplayText
impl<'__der_lifetime> IsConstructed for DisplayText
Source§const CONSTRUCTED: bool = true
const CONSTRUCTED: bool = true
ASN.1 constructed bit
Source§impl PartialEq for DisplayText
impl PartialEq for DisplayText
impl StructuralPartialEq for DisplayText
Auto Trait Implementations§
impl Freeze for DisplayText
impl RefUnwindSafe for DisplayText
impl Send for DisplayText
impl Sync for DisplayText
impl Unpin for DisplayText
impl UnsafeUnpin for DisplayText
impl UnwindSafe for DisplayText
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,
impl<T> DecodeOwned for Twhere
T: for<'a> Decode<'a>,
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more