pub struct VariantConfig {
pub options: HashMap<String, Value>,
pub disabled: Option<bool>,
}Expand description
Variant configuration for a model.
Fields§
§options: HashMap<String, Value>§disabled: Option<bool>Trait Implementations§
Source§impl Clone for VariantConfig
impl Clone for VariantConfig
Source§fn clone(&self) -> VariantConfig
fn clone(&self) -> VariantConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VariantConfig
impl Debug for VariantConfig
Source§impl Default for VariantConfig
impl Default for VariantConfig
Source§fn default() -> VariantConfig
fn default() -> VariantConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariantConfig
impl<'de> Deserialize<'de> for VariantConfig
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 Mergeable for VariantConfig
impl Mergeable for VariantConfig
Source§impl PartialEq for VariantConfig
impl PartialEq for VariantConfig
Source§fn eq(&self, other: &VariantConfig) -> bool
fn eq(&self, other: &VariantConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VariantConfig
impl Serialize for VariantConfig
impl StructuralPartialEq for VariantConfig
Auto Trait Implementations§
impl Freeze for VariantConfig
impl RefUnwindSafe for VariantConfig
impl Send for VariantConfig
impl Sync for VariantConfig
impl Unpin for VariantConfig
impl UnsafeUnpin for VariantConfig
impl UnwindSafe for VariantConfig
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