Struct stencila_schema::ConstantValidator [−][src]
pub struct ConstantValidator {
pub type_: ConstantValidator_,
pub id: Option<Box<String>>,
pub value: Option<Box<Node>>,
}
Expand description
A validator specifying a constant value that a node must have.
Fields
type_: ConstantValidator_
The name of this type
id: Option<Box<String>>
The identifier for this item.
value: Option<Box<Node>>
The value that the node must have.
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ConstantValidator
impl Send for ConstantValidator
impl Sync for ConstantValidator
impl Unpin for ConstantValidator
impl UnwindSafe for ConstantValidator
Blanket Implementations
Mutably borrows from an owned value. Read more