Struct stencila_schema::EnumValidator [−][src]
pub struct EnumValidator {
pub type_: EnumValidator_,
pub id: Option<Box<String>>,
pub values: Option<Vec<Node>>,
}
Expand description
A schema specifying that a node must be one of several values.
Fields
type_: EnumValidator_
The name of this type
id: Option<Box<String>>
The identifier for this item.
values: Option<Vec<Node>>
A node is valid if it is equal to any of these values.
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 EnumValidator
impl Send for EnumValidator
impl Sync for EnumValidator
impl Unpin for EnumValidator
impl UnwindSafe for EnumValidator
Blanket Implementations
Mutably borrows from an owned value. Read more