[][src]Struct schemafy_snapshot::schema::Schema

pub struct Schema {
    pub ref_: Option<String>,
    pub schema: Option<String>,
    pub additional_items: Option<Value>,
    pub additional_properties: Option<Value>,
    pub all_of: Option<SchemaArray>,
    pub any_of: Option<SchemaArray>,
    pub default: Option<Value>,
    pub definitions: BTreeMap<String, Schema>,
    pub dependencies: Option<BTreeMap<String, Value>>,
    pub description: Option<String>,
    pub enum_: Option<Vec<Value>>,
    pub exclusive_maximum: Option<bool>,
    pub exclusive_minimum: Option<bool>,
    pub id: Option<String>,
    pub items: Vec<Schema>,
    pub max_items: Option<PositiveInteger>,
    pub max_length: Option<PositiveInteger>,
    pub max_properties: Option<PositiveInteger>,
    pub maximum: Option<f64>,
    pub min_items: Option<PositiveIntegerDefault0>,
    pub min_length: Option<PositiveIntegerDefault0>,
    pub min_properties: Option<PositiveIntegerDefault0>,
    pub minimum: Option<f64>,
    pub multiple_of: Option<f64>,
    pub not: Option<Box<Schema>>,
    pub one_of: Option<SchemaArray>,
    pub pattern: Option<String>,
    pub pattern_properties: BTreeMap<String, Schema>,
    pub properties: BTreeMap<String, Schema>,
    pub required: Option<StringArray>,
    pub title: Option<String>,
    pub type_: Vec<SimpleTypes>,
    pub unique_items: Option<bool>,
}

Fields

ref_: Option<String>schema: Option<String>additional_items: Option<Value>additional_properties: Option<Value>all_of: Option<SchemaArray>any_of: Option<SchemaArray>default: Option<Value>definitions: BTreeMap<String, Schema>dependencies: Option<BTreeMap<String, Value>>description: Option<String>enum_: Option<Vec<Value>>exclusive_maximum: Option<bool>exclusive_minimum: Option<bool>id: Option<String>items: Vec<Schema>max_items: Option<PositiveInteger>max_length: Option<PositiveInteger>max_properties: Option<PositiveInteger>maximum: Option<f64>min_items: Option<PositiveIntegerDefault0>min_length: Option<PositiveIntegerDefault0>min_properties: Option<PositiveIntegerDefault0>minimum: Option<f64>multiple_of: Option<f64>not: Option<Box<Schema>>one_of: Option<SchemaArray>pattern: Option<String>pattern_properties: BTreeMap<String, Schema>properties: BTreeMap<String, Schema>required: Option<StringArray>title: Option<String>type_: Vec<SimpleTypes>unique_items: Option<bool>

Trait Implementations

impl PartialEq<Schema> for Schema[src]

impl Clone for Schema[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Schema[src]

impl Serialize for Schema[src]

impl<'de> Deserialize<'de> for Schema[src]

Auto Trait Implementations

impl Send for Schema

impl Sync for Schema

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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