[−][src]Struct tamasfe_schemars::schema::RootSchema
The root object of a JSON Schema document.
Fields
meta_schema: Option<String>
The $schema
keyword.
schema: SchemaObject
The root schema itself.
definitions: Map<String, Schema>
The definitions
keyword.
In JSON Schema draft 2019-09 this was replaced by $defs, but in Schemars this is still
serialized as definitions
for backward-compatibility.
See JSON Schema 8.2.5. Schema Re-Use With "$defs", and JSON Schema (draft 07) 9. Schema Re-Use With "definitions".
Trait Implementations
impl Clone for RootSchema
[src]
fn clone(&self) -> RootSchema
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RootSchema
[src]
impl Default for RootSchema
[src]
fn default() -> RootSchema
[src]
impl<'de> Deserialize<'de> for RootSchema where
RootSchema: Default,
[src]
RootSchema: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl JsonSchema for RootSchema
[src]
fn schema_name() -> String
[src]
fn json_schema(gen: &mut SchemaGenerator) -> Schema
[src]
fn is_referenceable() -> bool
[src]
impl PartialEq<RootSchema> for RootSchema
[src]
fn eq(&self, other: &RootSchema) -> bool
[src]
fn ne(&self, other: &RootSchema) -> bool
[src]
impl Serialize for RootSchema
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for RootSchema
[src]
Auto Trait Implementations
impl RefUnwindSafe for RootSchema
impl Send for RootSchema
impl Sync for RootSchema
impl Unpin for RootSchema
impl UnwindSafe for RootSchema
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,