pub enum ApplyValue {
Single(ModelVariant),
Multiple(Vec<ModelVariant>),
}Expand description
The apply value can be a single model or array.
Variants§
Single(ModelVariant)
Multiple(Vec<ModelVariant>)
Implementations§
Source§impl ApplyValue
impl ApplyValue
pub fn variants(&self) -> Vec<&ModelVariant>
Trait Implementations§
Source§impl Clone for ApplyValue
impl Clone for ApplyValue
Source§fn clone(&self) -> ApplyValue
fn clone(&self) -> ApplyValue
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 ApplyValue
impl Debug for ApplyValue
Source§impl<'de> Deserialize<'de> for ApplyValue
impl<'de> Deserialize<'de> for ApplyValue
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
Auto Trait Implementations§
impl Freeze for ApplyValue
impl RefUnwindSafe for ApplyValue
impl Send for ApplyValue
impl Sync for ApplyValue
impl Unpin for ApplyValue
impl UnwindSafe for ApplyValue
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