pub struct Variable {
pub type_: Variable_,
pub name: String,
pub id: Option<Box<String>>,
pub is_readonly: Option<Boolean>,
pub validator: Option<Box<ValidatorTypes>>,
pub value: Option<Box<Node>>,
}
Expand description
A variable representing a name / value pair.
Fields§
§type_: Variable_
The name of this type
name: String
The name of the variable.
id: Option<Box<String>>
The identifier for this item.
is_readonly: Option<Boolean>
Whether or not a property is mutable. Default is false.
validator: Option<Box<ValidatorTypes>>
The validator that the value is validated against.
value: Option<Box<Node>>
The value of the variable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variable
impl<'de> Deserialize<'de> for Variable
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 Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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