pub struct SchemaRef(/* private fields */);Expand description
A shared reference to a JSON Schema.
This wraps a serde_json::Value that represents a JSON Schema.
The value should be either an object or a boolean (the valid top-level
JSON Schema values).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SchemaRef
impl<'de> Deserialize<'de> for SchemaRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SchemaRef> for VariableSchema
impl From<SchemaRef> for VariableSchema
Source§impl From<VariableSchema> for SchemaRef
impl From<VariableSchema> for SchemaRef
Source§fn from(var_schema: VariableSchema) -> Self
fn from(var_schema: VariableSchema) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for SchemaRef
impl JsonSchema for SchemaRef
Source§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for SchemaRef
Auto Trait Implementations§
impl Freeze for SchemaRef
impl RefUnwindSafe for SchemaRef
impl Send for SchemaRef
impl Sync for SchemaRef
impl Unpin for SchemaRef
impl UnsafeUnpin for SchemaRef
impl UnwindSafe for SchemaRef
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