Struct stencila_schema::Variable [−][src]
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
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 RefUnwindSafe for Variable
impl UnwindSafe for Variable
Blanket Implementations
Mutably borrows from an owned value. Read more