[][src]Struct schemars::schema::StringValidation

pub struct StringValidation {
    pub max_length: Option<u32>,
    pub min_length: Option<u32>,
    pub pattern: Option<String>,
}

Properties of a SchemaObject which define validation assertions for strings.

Fields

max_length: Option<u32>

The maxLength keyword.

See JSON Schema Validation 6.3.1. "maxLength".

min_length: Option<u32>

The minLength keyword.

See JSON Schema Validation 6.3.2. "minLength".

pattern: Option<String>

The pattern keyword.

See JSON Schema Validation 6.3.3. "pattern".

Trait Implementations

impl Clone for StringValidation[src]

impl Debug for StringValidation[src]

impl Default for StringValidation[src]

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

impl JsonSchema for StringValidation[src]

impl PartialEq<StringValidation> for StringValidation[src]

impl Serialize for StringValidation[src]

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