[][src]Struct jellyschema::schema::Schema

pub struct Schema { /* fields omitted */ }

JellySchema structure

WARNING

JellySchema is YAML based. Althought, we're deserializing everything into serde_json structures like Value, Number or Rust types. The reason is that we're generating JSON values from the JellySchema. And this allows us to catch missing JSON features (when compared with YAML) during deserialization.

Methods

impl Schema[src]

pub fn version(&self) -> Option<u8>[src]

impl Schema[src]

pub fn type(&self) -> &Type[src]

pub fn const(&self) -> Option<&Value>[src]

pub fn default(&self) -> Option<&Value>[src]

pub fn enum(&self) -> &[EnumEntry][src]

pub fn formula(&self) -> Option<&str>[src]

pub fn placeholder(&self) -> Option<&str>[src]

pub fn read_only(&self) -> bool[src]

pub fn write_only(&self) -> bool[src]

pub fn hidden(&self) -> bool[src]

impl Schema[src]

pub fn mapping(&self) -> Option<&Mapping>[src]

impl Schema[src]

pub fn properties(&self) -> &[Property][src]

pub fn keys(&self) -> Option<&Schema>[src]

pub fn values(&self) -> Option<&Schema>[src]

pub fn additional_properties(&self) -> bool[src]

impl Schema[src]

pub fn separator(&self) -> Option<&str>[src]

impl Schema[src]

pub fn title(&self) -> Option<&str>[src]

pub fn help(&self) -> Option<&str>[src]

pub fn warning(&self) -> Option<&str>[src]

pub fn description(&self) -> Option<&str>[src]

pub fn collapsed(&self) -> Option<bool>[src]

pub fn collapsible(&self) -> Option<bool>[src]

impl Schema[src]

pub fn multiple_of(&self) -> Option<&Number>[src]

pub fn max(&self) -> Option<&Number>[src]

pub fn min(&self) -> Option<&Number>[src]

pub fn exclusive_max(&self) -> Option<&Number>[src]

pub fn exclusive_min(&self) -> Option<&Number>[src]

impl Schema[src]

pub fn max_length(&self) -> Option<usize>[src]

pub fn min_length(&self) -> Option<usize>[src]

pub fn pattern(&self) -> Option<&Regex>[src]

impl Schema[src]

pub fn items(&self) -> &[Schema][src]

pub fn max_items(&self) -> Option<usize>[src]

pub fn min_items(&self) -> Option<usize>[src]

pub fn unique_items(&self) -> &UniqueItems[src]

pub fn addable(&self) -> Option<bool>[src]

pub fn removable(&self) -> Option<bool>[src]

pub fn orderable(&self) -> Option<bool>[src]

Trait Implementations

impl Validator for Schema[src]

impl Debug for Schema[src]

impl FromStr for Schema[src]

type Err = Error

The associated error which can be returned from parsing.

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> 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> Any for T where
    T: 'static + ?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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]