pub enum MaybeMulti {
Single(String),
Multi(Vec<String>),
}Variants§
Trait Implementations§
Source§impl Clone for MaybeMulti
impl Clone for MaybeMulti
Source§fn clone(&self) -> MaybeMulti
fn clone(&self) -> MaybeMulti
Returns a duplicate 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 MaybeMulti
impl Debug for MaybeMulti
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for MaybeMultiwhere
__A: Allocator,
impl<'__de, __A> Decode<'__de, Binary, __A> for MaybeMultiwhere
__A: Allocator,
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'__de, __A> Decode<'__de, Text, __A> for MaybeMultiwhere
__A: Allocator,
impl<'__de, __A> Decode<'__de, Text, __A> for MaybeMultiwhere
__A: Allocator,
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl Default for MaybeMulti
impl Default for MaybeMulti
Source§impl<'de> Deserialize<'de> for MaybeMulti
impl<'de> Deserialize<'de> for MaybeMulti
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<Binary> for MaybeMulti
impl Encode<Binary> for MaybeMulti
Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = MaybeMulti
type Encode = MaybeMulti
The underlying type being encoded. Read more
Source§impl Encode<Text> for MaybeMulti
impl Encode<Text> for MaybeMulti
Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = MaybeMulti
type Encode = MaybeMulti
The underlying type being encoded. Read more
Auto Trait Implementations§
impl Freeze for MaybeMulti
impl RefUnwindSafe for MaybeMulti
impl Send for MaybeMulti
impl Sync for MaybeMulti
impl Unpin for MaybeMulti
impl UnwindSafe for MaybeMulti
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