Struct taplo::schema::util::ExtendedSchema [−][src]
pub struct ExtendedSchema<'s> { pub schema: &'s SchemaObject, pub ext: ExtMeta, }
Fields
schema: &'s SchemaObject
ext: 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]
defs: &'s Map<String, Schema>,
schema: &'s SchemaObject
) -> Self
pub fn resolved(
defs: &'s Map<String, Schema>,
schema: &'s Schema
) -> Option<Self>
[src]
defs: &'s Map<String, Schema>,
schema: &'s Schema
) -> Option<Self>
pub fn descendants(
&self,
defs: &'s Map<String, Schema>,
max_depth: usize
) -> Vec<(Path, ExtendedSchema<'s>, bool)>
[src]
&self,
defs: &'s Map<String, Schema>,
max_depth: usize
) -> Vec<(Path, ExtendedSchema<'s>, bool)>
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]
fn clone(&self) -> ExtendedSchema<'s>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'s> Debug for ExtendedSchema<'s>
[src]
impl<'s> From<&'s SchemaObject> for ExtendedSchema<'s>
[src]
fn from(schema: &'s SchemaObject) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,