Enum sdml_core::model::constraints::Variables
source · pub enum Variables {
Named(NamedVariables),
Mapping(MappingVariable),
}
Variants§
Named(NamedVariables)
Mapping(MappingVariable)
Implementations§
source§impl Variables
impl Variables
pub const fn is_named_set(&self) -> bool
pub const fn as_named_set(&self) -> Option<&NamedVariables>
pub const fn is_mapping(&self) -> bool
pub const fn as_mapping(&self) -> Option<&MappingVariable>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Variables
impl<'de> Deserialize<'de> for Variables
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 From<MappingVariable> for Variables
impl From<MappingVariable> for Variables
source§fn from(value: MappingVariable) -> Self
fn from(value: MappingVariable) -> Self
Converts to this type from the input type.
source§impl From<NamedVariables> for Variables
impl From<NamedVariables> for Variables
source§fn from(value: NamedVariables) -> Self
fn from(value: NamedVariables) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Variables
impl Send for Variables
impl Sync for Variables
impl Unpin for Variables
impl UnwindSafe for Variables
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