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
sourceimpl Serialize for Draft
impl Serialize for Draft
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnwindSafe for Draft
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more