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
)