Struct taplo::schema::util::ExtendedSchema[][src]

pub struct ExtendedSchema<'s> {
    pub schema: &'s SchemaObject,
    pub ext: ExtMeta,
}

Fields

schema: &'s SchemaObjectext: ExtMeta

Implementations

impl<'s> ExtendedSchema<'s>[src]

pub fn is(&self, ty: InstanceType) -> bool[src]

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

pub fn is_array_of_objects(&self, defs: &'s Map<String, Schema>) -> bool[src]

pub fn resolved_object(
    defs: &'s Map<String, Schema>,
    schema: &'s SchemaObject
) -> Self
[src]

pub fn resolved(
    defs: &'s Map<String, Schema>,
    schema: &'s Schema
) -> Option<Self>
[src]

pub fn descendants(
    &self,
    defs: &'s Map<String, Schema>,
    max_depth: usize
) -> Vec<(Path, ExtendedSchema<'s>, bool)>
[src]

Collect all descendants with their paths relative to this schema, and an indicator whether the schema (property) is required.

This doesn’t include the schema itself.

Trait Implementations

impl<'s> Clone for ExtendedSchema<'s>[src]

impl<'s> Debug for ExtendedSchema<'s>[src]

impl<'s> From<&'s SchemaObject> for ExtendedSchema<'s>[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for ExtendedSchema<'s>

impl<'s> Send for ExtendedSchema<'s>

impl<'s> Sync for ExtendedSchema<'s>

impl<'s> Unpin for ExtendedSchema<'s>

impl<'s> UnwindSafe for ExtendedSchema<'s>

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> DynClone for T where
    T: Clone
[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.