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§
source§impl Clone for RemoveRefSiblings
impl Clone for RemoveRefSiblings
source§fn clone(&self) -> RemoveRefSiblings
fn clone(&self) -> RemoveRefSiblings
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RemoveRefSiblings
impl Debug for RemoveRefSiblings
source§impl Visitor for RemoveRefSiblings
impl Visitor for RemoveRefSiblings
source§fn 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 moresource§fn 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 moreAuto Trait Implementations§
impl Freeze for RemoveRefSiblings
impl RefUnwindSafe for RemoveRefSiblings
impl Send for RemoveRefSiblings
impl Sync for RemoveRefSiblings
impl Unpin for RemoveRefSiblings
impl UnwindSafe for RemoveRefSiblings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)