Skip to main content

ResolvedAnySchema

Struct ResolvedAnySchema 

Source
pub struct ResolvedAnySchema {
Show 24 fields pub typ: Option<String>, pub pattern: Option<String>, pub multiple_of: Option<f64>, pub exclusive_minimum: Option<bool>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f64>, pub maximum: Option<f64>, pub properties: IndexMap<String, NestedSchema>, pub required: Vec<String>, pub additional_properties: Option<ResolvedAdditionalProperties>, pub min_properties: Option<usize>, pub max_properties: Option<usize>, pub items: Option<NestedSchema>, pub min_items: Option<usize>, pub max_items: Option<usize>, pub unique_items: Option<bool>, pub enumeration: Vec<Value>, pub format: Option<String>, pub min_length: Option<usize>, pub max_length: Option<usize>, pub one_of: Vec<NestedSchema>, pub all_of: Vec<NestedSchema>, pub any_of: Vec<NestedSchema>, pub not: Option<NestedSchema>,
}
Expand description

AnySchema with every $ref replaced by the schema it named.

Fields§

§typ: Option<String>§pattern: Option<String>§multiple_of: Option<f64>§exclusive_minimum: Option<bool>§exclusive_maximum: Option<bool>§minimum: Option<f64>§maximum: Option<f64>§properties: IndexMap<String, NestedSchema>§required: Vec<String>§additional_properties: Option<ResolvedAdditionalProperties>§min_properties: Option<usize>§max_properties: Option<usize>§items: Option<NestedSchema>§min_items: Option<usize>§max_items: Option<usize>§unique_items: Option<bool>§enumeration: Vec<Value>§format: Option<String>§min_length: Option<usize>§max_length: Option<usize>§one_of: Vec<NestedSchema>§all_of: Vec<NestedSchema>§any_of: Vec<NestedSchema>§not: Option<NestedSchema>

Trait Implementations§

Source§

impl Debug for ResolvedAnySchema

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ResolvedAnySchema

Source§

fn eq(&self, other: &ResolvedAnySchema) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ResolvedAnySchema

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.