pub enum Draft {
Draft4,
Draft6,
Draft7,
Draft201909,
Draft202012,
}
Expand description
Meta-schema versions. Read more
Variants§
Draft4
Add "$schema": "http://json-schema.org/draft-04/schema#"
.
Draft6
Add "$schema": "http://json-schema.org/draft-06/schema#"
.
Draft7
Add "$schema": "http://json-schema.org/draft-07/schema#"
.
Draft201909
Add "$schema": "https://json-schema.org/draft/2019-09/schema"
.
Draft202012
Add "$schema": "https://json-schema.org/draft/2020-12/schema"
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin 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