pub struct JsonSchemaDocument(/* private fields */);Expand description
An embedded JSON Schema (Draft 2020-12) document.
Deliberately open (baseline exemption class 1): its internal grammar is governed by the JSON Schema meta-schema, not by the IR schema. The only shape constraint enforced here is the JSON Schema data model itself: a schema document is an object or a boolean.
Implementations§
Trait Implementations§
Source§impl Clone for JsonSchemaDocument
impl Clone for JsonSchemaDocument
Source§fn clone(&self) -> JsonSchemaDocument
fn clone(&self) -> JsonSchemaDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonSchemaDocument
impl Debug for JsonSchemaDocument
Source§impl<'de> Deserialize<'de> for JsonSchemaDocument
impl<'de> Deserialize<'de> for JsonSchemaDocument
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<JsonSchemaDocument> for Value
impl From<JsonSchemaDocument> for Value
Source§fn from(doc: JsonSchemaDocument) -> Value
fn from(doc: JsonSchemaDocument) -> Value
Converts to this type from the input type.
Source§impl JsonSchema for JsonSchemaDocument
impl JsonSchema for JsonSchemaDocument
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
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 moreSource§impl PartialEq for JsonSchemaDocument
impl PartialEq for JsonSchemaDocument
Source§impl Serialize for JsonSchemaDocument
impl Serialize for JsonSchemaDocument
impl StructuralPartialEq for JsonSchemaDocument
Auto Trait Implementations§
impl Freeze for JsonSchemaDocument
impl RefUnwindSafe for JsonSchemaDocument
impl Send for JsonSchemaDocument
impl Sync for JsonSchemaDocument
impl Unpin for JsonSchemaDocument
impl UnsafeUnpin for JsonSchemaDocument
impl UnwindSafe for JsonSchemaDocument
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