Enum x509_cert::ext::pkix::certpolicy::DisplayText
source · 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§fn clone(&self) -> DisplayText
fn clone(&self) -> DisplayText
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 DisplayText
impl Debug for DisplayText
source§impl<'__der_lifetime> Decode<'__der_lifetime> for DisplayText
impl<'__der_lifetime> Decode<'__der_lifetime> for DisplayText
source§impl EncodeValue for DisplayText
impl EncodeValue for DisplayText
source§impl PartialEq for DisplayText
impl PartialEq for DisplayText
source§fn eq(&self, other: &DisplayText) -> bool
fn eq(&self, other: &DisplayText) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Tagged for DisplayText
impl Tagged for DisplayText
impl Eq for DisplayText
impl StructuralEq for DisplayText
impl StructuralPartialEq for DisplayText
Auto Trait Implementations§
impl RefUnwindSafe for DisplayText
impl Send for DisplayText
impl Sync for DisplayText
impl Unpin 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> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
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 value to the provided byte slice, returning a sub-slice
containing the encoded message.