Struct stencila_schema::NumberValidator [−][src]
pub struct NumberValidator {
pub type_: NumberValidator_,
pub exclusive_maximum: Option<Number>,
pub exclusive_minimum: Option<Number>,
pub id: Option<Box<String>>,
pub maximum: Option<Number>,
pub minimum: Option<Number>,
pub multiple_of: Option<Number>,
}
Expand description
A validator specifying the constraints on a numeric node.
Fields
type_: NumberValidator_
The name of this type
exclusive_maximum: Option<Number>
The exclusive upper limit for a numeric node.
exclusive_minimum: Option<Number>
The exclusive lower limit for a numeric node.
id: Option<Box<String>>
The identifier for this item.
maximum: Option<Number>
The inclusive upper limit for a numeric node.
minimum: Option<Number>
The inclusive lower limit for a numeric node.
multiple_of: Option<Number>
A number that a numeric node must be a multiple of.
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 NumberValidator
impl Send for NumberValidator
impl Sync for NumberValidator
impl Unpin for NumberValidator
impl UnwindSafe for NumberValidator
Blanket Implementations
Mutably borrows from an owned value. Read more