[−][src]Struct jellyschema::schema::Schema
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]
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]
[src]
impl Schema
[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]
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]
fn validate(&self, data: Option<&Value>) -> ValidationState
[src]
impl Debug for Schema
[src]
impl FromStr for Schema
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Schema, Error>
[src]
impl<'de> Deserialize<'de> for Schema
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,