[][src]Struct schemars::schema::NumberValidation

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>,
}

Properties of a SchemaObject which define validation assertions for numbers.

Fields

multiple_of: Option<f64>

The multipleOf keyword.

See JSON Schema Validation 6.2.1. "multipleOf".

maximum: Option<f64>

The maximum keyword.

See JSON Schema Validation 6.2.2. "maximum".

exclusive_maximum: Option<f64>

The exclusiveMaximum keyword.

See JSON Schema Validation 6.2.3. "exclusiveMaximum".

minimum: Option<f64>

The minimum keyword.

See JSON Schema Validation 6.2.4. "minimum".

exclusive_minimum: Option<f64>

The exclusiveMinimum keyword.

See JSON Schema Validation 6.2.5. "exclusiveMinimum".

Trait Implementations

impl Clone for NumberValidation[src]

impl Debug for NumberValidation[src]

impl Default for NumberValidation[src]

impl<'de> Deserialize<'de> for NumberValidation where
    NumberValidation: Default
[src]

impl JsonSchema for NumberValidation[src]

impl PartialEq<NumberValidation> for NumberValidation[src]

impl Serialize for NumberValidation[src]

impl StructuralPartialEq for NumberValidation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.