pub enum GeneralNamesOrText {
GeneralNames(GeneralNames),
Text(String),
}
Expand description
Enum for type that can be a GeneralNames
or a text use in AlternativeName
.
Variants§
Trait Implementations§
source§impl Clone for GeneralNamesOrText
impl Clone for GeneralNamesOrText
source§fn clone(&self) -> GeneralNamesOrText
fn clone(&self) -> GeneralNamesOrText
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 GeneralNamesOrText
impl Debug for GeneralNamesOrText
source§impl Decode<'_, ()> for GeneralNamesOrText
impl Decode<'_, ()> for GeneralNamesOrText
source§impl<'de> Deserialize<'de> for GeneralNamesOrText
impl<'de> Deserialize<'de> for GeneralNamesOrText
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode<()> for GeneralNamesOrText
impl Encode<()> for GeneralNamesOrText
source§impl PartialEq for GeneralNamesOrText
impl PartialEq for GeneralNamesOrText
source§impl Serialize for GeneralNamesOrText
impl Serialize for GeneralNamesOrText
impl StructuralPartialEq for GeneralNamesOrText
Auto Trait Implementations§
impl Freeze for GeneralNamesOrText
impl RefUnwindSafe for GeneralNamesOrText
impl Send for GeneralNamesOrText
impl Sync for GeneralNamesOrText
impl Unpin for GeneralNamesOrText
impl UnwindSafe for GeneralNamesOrText
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)