Enum rcgen::OtherNameValue
source · #[non_exhaustive]pub enum OtherNameValue {
Utf8String(String),
}
Expand description
An OtherName
value, defined in RFC 5280§4.1.2.4.
While the standard specifies this could be any ASN.1 type rcgen limits the value to a UTF-8 encoded string as this will cover the most common use cases, for instance smart card user principal names (UPN).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for OtherNameValue
impl Clone for OtherNameValue
source§fn clone(&self) -> OtherNameValue
fn clone(&self) -> OtherNameValue
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 OtherNameValue
impl Debug for OtherNameValue
source§impl<T> From<T> for OtherNameValue
impl<T> From<T> for OtherNameValue
source§impl Hash for OtherNameValue
impl Hash for OtherNameValue
source§impl PartialEq for OtherNameValue
impl PartialEq for OtherNameValue
source§fn eq(&self, other: &OtherNameValue) -> bool
fn eq(&self, other: &OtherNameValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OtherNameValue
impl StructuralPartialEq for OtherNameValue
Auto Trait Implementations§
impl Freeze for OtherNameValue
impl RefUnwindSafe for OtherNameValue
impl Send for OtherNameValue
impl Sync for OtherNameValue
impl Unpin for OtherNameValue
impl UnwindSafe for OtherNameValue
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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