pub enum DynamicValue {
String(String),
Number(f64),
Boolean(bool),
Array(Vec<Value>),
Binding(DataBinding),
Function(FunctionCall),
}Expand description
A general-purpose dynamic value — can be any JSON primitive, binding, or function call.
Variants§
String(String)
Number(f64)
Boolean(bool)
Array(Vec<Value>)
Binding(DataBinding)
Function(FunctionCall)
Trait Implementations§
Source§impl Clone for DynamicValue
impl Clone for DynamicValue
Source§fn clone(&self) -> DynamicValue
fn clone(&self) -> DynamicValue
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 DynamicValue
impl Debug for DynamicValue
Source§impl<'de> Deserialize<'de> for DynamicValue
impl<'de> Deserialize<'de> for DynamicValue
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 PartialEq for DynamicValue
impl PartialEq for DynamicValue
Source§fn eq(&self, other: &DynamicValue) -> bool
fn eq(&self, other: &DynamicValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DynamicValue
impl Serialize for DynamicValue
impl StructuralPartialEq for DynamicValue
Auto Trait Implementations§
impl Freeze for DynamicValue
impl RefUnwindSafe for DynamicValue
impl Send for DynamicValue
impl Sync for DynamicValue
impl Unpin for DynamicValue
impl UnsafeUnpin for DynamicValue
impl UnwindSafe for DynamicValue
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