[][src]Struct schemars::schema::ArrayValidation

pub struct ArrayValidation {
    pub items: Option<SingleOrVec<Schema>>,
    pub additional_items: Option<Box<Schema>>,
    pub max_items: Option<u32>,
    pub min_items: Option<u32>,
    pub unique_items: Option<bool>,
    pub contains: Option<Box<Schema>>,
}

Properties of a SchemaObject which define validation assertions for arrays.

Fields

items: Option<SingleOrVec<Schema>>

The items keyword.

See JSON Schema 9.3.1.1. "items".

additional_items: Option<Box<Schema>>

The additionalItems keyword.

See JSON Schema 9.3.1.2. "additionalItems".

max_items: Option<u32>

The maxItems keyword.

See JSON Schema Validation 6.4.1. "maxItems".

min_items: Option<u32>

The minItems keyword.

See JSON Schema Validation 6.4.2. "minItems".

unique_items: Option<bool>

The uniqueItems keyword.

See JSON Schema Validation 6.4.3. "uniqueItems".

contains: Option<Box<Schema>>

The contains keyword.

See JSON Schema 9.3.1.4. "contains".

Trait Implementations

impl Clone for ArrayValidation[src]

impl Debug for ArrayValidation[src]

impl Default for ArrayValidation[src]

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

impl JsonSchema for ArrayValidation[src]

impl PartialEq<ArrayValidation> for ArrayValidation[src]

impl Serialize for ArrayValidation[src]

impl StructuralPartialEq for ArrayValidation[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.