pub enum VariadicValue<T> {
Null,
Single(T),
Multiple(Vec<T>),
}
Variants§
Implementations§
source§impl<T> VariadicValue<T>where
T: DeserializeOwned,
impl<T> VariadicValue<T>where
T: DeserializeOwned,
Trait Implementations§
source§impl<T: Clone> Clone for VariadicValue<T>
impl<T: Clone> Clone for VariadicValue<T>
source§fn clone(&self) -> VariadicValue<T>
fn clone(&self) -> VariadicValue<T>
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<T: Debug> Debug for VariadicValue<T>
impl<T: Debug> Debug for VariadicValue<T>
source§impl<'a, T> Deserialize<'a> for VariadicValue<T>where
T: DeserializeOwned,
impl<'a, T> Deserialize<'a> for VariadicValue<T>where
T: DeserializeOwned,
source§fn deserialize<D>(deserializer: D) -> Result<VariadicValue<T>, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<VariadicValue<T>, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Hash> Hash for VariadicValue<T>
impl<T: Hash> Hash for VariadicValue<T>
source§impl<T: PartialEq> PartialEq for VariadicValue<T>
impl<T: PartialEq> PartialEq for VariadicValue<T>
source§fn eq(&self, other: &VariadicValue<T>) -> bool
fn eq(&self, other: &VariadicValue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for VariadicValue<T>where
T: Serialize,
impl<T> Serialize for VariadicValue<T>where
T: Serialize,
impl<T: Eq> Eq for VariadicValue<T>
impl<T> StructuralPartialEq for VariadicValue<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for VariadicValue<T>where
T: RefUnwindSafe,
impl<T> Send for VariadicValue<T>where
T: Send,
impl<T> Sync for VariadicValue<T>where
T: Sync,
impl<T> Unpin for VariadicValue<T>where
T: Unpin,
impl<T> UnwindSafe for VariadicValue<T>where
T: UnwindSafe,
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