pub enum Draft {
Draft07,
Draft2020_12,
}Expand description
The JSON Schema draft to write.
Variants§
Draft07
Writes definitions and references under #/definitions/, and dependencies for required-together keys.
Draft2020_12
Writes $defs and references under #/$defs/, and dependentRequired.
Trait Implementations§
impl Copy for Draft
impl Eq for Draft
impl StructuralPartialEq for Draft
Auto Trait Implementations§
impl Forget for Draft
impl Freeze for Draft
impl Move for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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