Struct schemars::visit::RemoveRefSiblings
source · [−]pub struct RemoveRefSiblings;
Expand description
This visitor will restructure JSON Schema objects so that the $ref
property will never appear alongside any other properties.
This is useful for dialects of JSON Schema (e.g. Draft 7) that do not support other properties alongside $ref
.
Trait Implementations
sourceimpl Clone for RemoveRefSiblings
impl Clone for RemoveRefSiblings
sourcefn clone(&self) -> RemoveRefSiblings
fn clone(&self) -> RemoveRefSiblings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RemoveRefSiblings
impl Debug for RemoveRefSiblings
sourceimpl Visitor for RemoveRefSiblings
impl Visitor for RemoveRefSiblings
sourcefn visit_schema_object(&mut self, schema: &mut SchemaObject)
fn visit_schema_object(&mut self, schema: &mut SchemaObject)
Override this method to modify a SchemaObject
and (optionally) its subschemas. Read more
sourcefn visit_root_schema(&mut self, root: &mut RootSchema)
fn visit_root_schema(&mut self, root: &mut RootSchema)
Override this method to modify a RootSchema
and (optionally) its subschemas. Read more
sourcefn visit_schema(&mut self, schema: &mut Schema)
fn visit_schema(&mut self, schema: &mut Schema)
Auto Trait Implementations
impl RefUnwindSafe for RemoveRefSiblings
impl Send for RemoveRefSiblings
impl Sync for RemoveRefSiblings
impl Unpin for RemoveRefSiblings
impl UnwindSafe for RemoveRefSiblings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more