pub enum DslValue {
String(String),
Number(f64),
Bool(bool),
Visibility(Visibility),
Target(ElementTarget),
ElementRef(ElementReference),
Action(ActionEffect),
List(Vec<Self>),
Unit,
}Expand description
DSL values that can be stored in variables or used in expressions
Variants§
String(String)
String value
Number(f64)
Numeric value
Bool(bool)
Boolean value
Visibility(Visibility)
Visibility value
Target(ElementTarget)
Element target
ElementRef(ElementReference)
Element reference for object-oriented API
Action(ActionEffect)
Action effect
List(Vec<Self>)
List of values
Unit
Unit value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DslValue
impl<'de> Deserialize<'de> for DslValue
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<DslValue> for ActionEffect
impl From<DslValue> for ActionEffect
impl StructuralPartialEq for DslValue
Auto Trait Implementations§
impl Freeze for DslValue
impl RefUnwindSafe for DslValue
impl Send for DslValue
impl Sync for DslValue
impl Unpin for DslValue
impl UnsafeUnpin for DslValue
impl UnwindSafe for DslValue
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