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

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>min_items: Option<u32>unique_items: Option<bool>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: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[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.