pub struct SchemaReference { /* private fields */ }Expand description
An immutable reference to canonical JSON schema bytes.
The explicit version supports compatibility policy, while the digest prevents a reused URI or version from silently changing validation behavior.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaReference
impl Clone for SchemaReference
Source§impl Debug for SchemaReference
impl Debug for SchemaReference
Source§impl<'de> Deserialize<'de> for SchemaReference
impl<'de> Deserialize<'de> for SchemaReference
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
impl Eq for SchemaReference
Source§impl Hash for SchemaReference
impl Hash for SchemaReference
Source§impl JsonSchema for SchemaReference
impl JsonSchema for SchemaReference
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 SchemaReference
impl PartialEq for SchemaReference
Source§impl Serialize for SchemaReference
impl Serialize for SchemaReference
impl StructuralPartialEq for SchemaReference
Auto Trait Implementations§
impl Forget for SchemaReference
impl Freeze for SchemaReference
impl Move for SchemaReference
impl RefUnwindSafe for SchemaReference
impl Send for SchemaReference
impl Sync for SchemaReference
impl Unpin for SchemaReference
impl UnsafeUnpin for SchemaReference
impl UnwindSafe for SchemaReference
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