Struct stencila_schema::Parameter [−][src]
pub struct Parameter { pub type_: Parameter_, pub name: String, pub default: Option<Box<Node>>, pub id: Option<Box<String>>, pub is_extensible: Option<Box<bool>>, pub is_readonly: Option<Box<bool>>, pub is_required: Option<Box<bool>>, pub is_variadic: Option<Box<bool>>, pub validator: Option<Box<ValidatorTypes>>, pub value: Option<Box<Node>>, }
Expand description
A parameter that can be set and used in evaluated code.
Fields
type_: Parameter_
The name of this type
name: String
The name of the variable.
default: Option<Box<Node>>
The default value of the parameter.
id: Option<Box<String>>
The identifier for this item.
is_extensible: Option<Box<bool>>
Indicates that this parameter is variadic and can accept multiple named arguments.
is_readonly: Option<Box<bool>>
Whether or not a property is mutable. Default is false.
is_required: Option<Box<bool>>
Is this parameter required, if not it should have a default or default is assumed to be null.
is_variadic: Option<Box<bool>>
Indicates that this parameter is variadic and can accept multiple arguments.
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>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Parameter
impl UnwindSafe for Parameter
Blanket Implementations
Mutably borrows from an owned value. Read more