Enum eva_common::common_payloads::ValueOrList
source · pub enum ValueOrList<T>where
T: Send + Sync + Clone,{
Single(T),
Multiple(Vec<T>),
}Variants§
Implementations§
Trait Implementations§
source§impl<T> Clone for ValueOrList<T>where
T: Send + Sync + Clone + Clone,
impl<T> Clone for ValueOrList<T>where T: Send + Sync + Clone + Clone,
source§fn clone(&self) -> ValueOrList<T>
fn clone(&self) -> ValueOrList<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<'de, T> Deserialize<'de> for ValueOrList<T>where
T: Send + Sync + Clone + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ValueOrList<T>where T: Send + Sync + Clone + Deserialize<'de>,
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<'a, T: Send + Sync + Clone> IntoIterator for &'a ValueOrList<T>
impl<'a, T: Send + Sync + Clone> IntoIterator for &'a ValueOrList<T>
§type IntoIter = Box<dyn Iterator<Item = <&'a ValueOrList<T> as IntoIterator>::Item> + Send + Sync + 'a, Global>
type IntoIter = Box<dyn Iterator<Item = <&'a ValueOrList<T> as IntoIterator>::Item> + Send + Sync + 'a, Global>
Which kind of iterator are we turning this into?
source§impl<T: Send + Sync + Clone + 'static> IntoIterator for ValueOrList<T>
impl<T: Send + Sync + Clone + 'static> IntoIterator for ValueOrList<T>
§type IntoIter = Box<dyn Iterator<Item = <ValueOrList<T> as IntoIterator>::Item> + Send + Sync + 'static, Global>
type IntoIter = Box<dyn Iterator<Item = <ValueOrList<T> as IntoIterator>::Item> + Send + Sync + 'static, Global>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl<T> RefUnwindSafe for ValueOrList<T>where T: RefUnwindSafe,
impl<T> Send for ValueOrList<T>
impl<T> Sync for ValueOrList<T>
impl<T> Unpin for ValueOrList<T>where T: Unpin,
impl<T> UnwindSafe for ValueOrList<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