[][src]Struct schemafy_lib::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<Vec<Schema>>,
    pub any_of: Option<Vec<Schema>>,
    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 enum_names: Option<Vec<String>>,
    pub exclusive_maximum: Option<bool>,
    pub exclusive_minimum: Option<bool>,
    pub id: Option<String>,
    pub items: Vec<Schema>,
    pub max_items: Option<i64>,
    pub max_length: Option<i64>,
    pub max_properties: Option<i64>,
    pub maximum: Option<f64>,
    pub min_items: Option<Value>,
    pub min_length: Option<Value>,
    pub min_properties: Option<Value>,
    pub minimum: Option<f64>,
    pub multiple_of: Option<f64>,
    pub not: Option<Box<Schema>>,
    pub one_of: Option<Vec<Schema>>,
    pub pattern: Option<String>,
    pub pattern_properties: BTreeMap<String, Schema>,
    pub properties: BTreeMap<String, Schema>,
    pub required: Option<Vec<String>>,
    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<Vec<Schema>>any_of: Option<Vec<Schema>>default: Option<Value>definitions: BTreeMap<String, Schema>dependencies: Option<BTreeMap<String, Value>>description: Option<String>enum_: Option<Vec<Value>>enum_names: Option<Vec<String>>exclusive_maximum: Option<bool>exclusive_minimum: Option<bool>id: Option<String>items: Vec<Schema>max_items: Option<i64>max_length: Option<i64>max_properties: Option<i64>maximum: Option<f64>min_items: Option<Value>min_length: Option<Value>min_properties: Option<Value>minimum: Option<f64>multiple_of: Option<f64>not: Option<Box<Schema>>one_of: Option<Vec<Schema>>pattern: Option<String>pattern_properties: BTreeMap<String, Schema>properties: BTreeMap<String, Schema>required: Option<Vec<String>>title: Option<String>type_: Vec<SimpleTypes>unique_items: Option<bool>

Trait Implementations

impl Clone for Schema[src]

impl Debug for Schema[src]

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

impl PartialEq<Schema> for Schema[src]

impl Serialize for Schema[src]

impl StructuralPartialEq for Schema[src]

Auto Trait Implementations

impl RefUnwindSafe for Schema

impl Send for Schema

impl Sync for Schema

impl Unpin for Schema

impl UnwindSafe for Schema

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> 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.