[][src]Struct rocs::models::Schema

pub struct Schema {
    pub id: Option<String>,
    pub schema: Option<String>,
    pub title: Option<String>,
    pub description: Option<String>,
    pub default: Option<Value>,
    pub multiple_of: Option<f32>,
    pub maximum: Option<f32>,
    pub exclusive_maximum: Option<bool>,
    pub minimum: Option<f32>,
    pub exclusive_minimum: Option<bool>,
    pub max_length: Option<i32>,
    pub min_length: Option<PositiveIntegerDefault0>,
    pub pattern: Option<String>,
    pub max_items: Option<i32>,
    pub min_items: Option<PositiveIntegerDefault0>,
    pub unique_items: Option<bool>,
    pub max_properties: Option<i32>,
    pub min_properties: Option<PositiveIntegerDefault0>,
    pub _enum: Option<Vec<String>>,
    pub format: Option<String>,
}

Schema : Core schema meta-schema

Fields

id: Option<String>schema: Option<String>title: Option<String>description: Option<String>default: Option<Value>multiple_of: Option<f32>maximum: Option<f32>exclusive_maximum: Option<bool>minimum: Option<f32>exclusive_minimum: Option<bool>max_length: Option<i32>min_length: Option<PositiveIntegerDefault0>pattern: Option<String>max_items: Option<i32>min_items: Option<PositiveIntegerDefault0>unique_items: Option<bool>max_properties: Option<i32>min_properties: Option<PositiveIntegerDefault0>_enum: Option<Vec<String>>format: Option<String>

Methods

impl Schema[src]

pub fn new() -> Schema[src]

Core schema meta-schema

Trait Implementations

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: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,