Struct schemars::schema::NumberValidation [−][src]
pub struct NumberValidation {
pub multiple_of: Option<f64>,
pub maximum: Option<f64>,
pub exclusive_maximum: Option<f64>,
pub minimum: Option<f64>,
pub exclusive_minimum: Option<f64>,
}
Expand description
Properties of a SchemaObject
which define validation assertions for numbers.
Fields
multiple_of: Option<f64>
The multipleOf
keyword.
maximum: Option<f64>
The maximum
keyword.
exclusive_maximum: Option<f64>
The exclusiveMaximum
keyword.
minimum: Option<f64>
The minimum
keyword.
exclusive_minimum: Option<f64>
The exclusiveMinimum
keyword.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NumberValidation
impl Send for NumberValidation
impl Sync for NumberValidation
impl Unpin for NumberValidation
impl UnwindSafe for NumberValidation
Blanket Implementations
Mutably borrows from an owned value. Read more