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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.