#[non_exhaustive]pub struct ReplacePrefixItems;
Expand description
Rename the prefixItems
schema property to items
.
This also applies to subschemas.
If the schema contains both prefixItems
and items
, then this additionally renames items
to
additionalItems
.
This is useful for versions of JSON Schema (e.g. Draft 7) that do not support the prefixItems
property.
Trait Implementations§
Source§impl Clone for ReplacePrefixItems
impl Clone for ReplacePrefixItems
Source§fn clone(&self) -> ReplacePrefixItems
fn clone(&self) -> ReplacePrefixItems
Returns a duplicate 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 ReplacePrefixItems
impl Debug for ReplacePrefixItems
Source§impl Default for ReplacePrefixItems
impl Default for ReplacePrefixItems
Source§fn default() -> ReplacePrefixItems
fn default() -> ReplacePrefixItems
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReplacePrefixItems
impl RefUnwindSafe for ReplacePrefixItems
impl Send for ReplacePrefixItems
impl Sync for ReplacePrefixItems
impl Unpin for ReplacePrefixItems
impl UnwindSafe for ReplacePrefixItems
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