pub struct JsonSchema;Expand description
YAML 1.2 JSON schema.
Stricter than Core: only lowercase null/true/false, decimal integers
only, no octal/hex, no case variants for infinity/NaN.
Trait Implementations§
Source§impl Schema for JsonSchema
impl Schema for JsonSchema
Source§fn resolve_scalar(
&self,
value: &str,
tag: Option<&str>,
style: ScalarStyle,
) -> Scalar
fn resolve_scalar( &self, value: &str, tag: Option<&str>, style: ScalarStyle, ) -> Scalar
Resolve a scalar to a typed value. Read more
Source§fn resolve_tag(&self, tag: &str) -> ResolvedTag
fn resolve_tag(&self, tag: &str) -> ResolvedTag
Classify a raw tag string into a
ResolvedTag.Auto Trait Implementations§
impl Freeze for JsonSchema
impl RefUnwindSafe for JsonSchema
impl Send for JsonSchema
impl Sync for JsonSchema
impl Unpin for JsonSchema
impl UnsafeUnpin for JsonSchema
impl UnwindSafe for JsonSchema
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