pub struct SchemaObject {
pub schema: Option<String>,
pub id: Option<String>,
pub title: String,
pub dtype: Option<DataType>,
pub description: Option<String>,
pub properties: BTreeMap<String, Property>,
pub definitions: BTreeMap<String, SchemaType>,
pub required: Vec<String>,
pub additional_properties: bool,
}Fields§
§schema: Option<String>§id: Option<String>§title: String§dtype: Option<DataType>§description: Option<String>§properties: BTreeMap<String, Property>§definitions: BTreeMap<String, SchemaType>§required: Vec<String>§additional_properties: boolImplementations§
Trait Implementations§
Source§impl Clone for SchemaObject
impl Clone for SchemaObject
Source§fn clone(&self) -> SchemaObject
fn clone(&self) -> SchemaObject
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaObject
impl Debug for SchemaObject
Source§impl<'de> Deserialize<'de> for SchemaObject
impl<'de> Deserialize<'de> for SchemaObject
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 Serialize for SchemaObject
impl Serialize for SchemaObject
Source§impl TryFrom<&Object> for SchemaObject
impl TryFrom<&Object> for SchemaObject
Source§impl TryFrom<SchemaObject> for DataModel
Converts a JSON Schema object to a DataModel
impl TryFrom<SchemaObject> for DataModel
Converts a JSON Schema object to a DataModel
This implementation handles the conversion of the root schema object and all its definitions to the corresponding DataModel structure, including objects and enumerations.
Source§impl TryFrom<SchemaObject> for Object
Converts a JSON Schema object to an Object
impl TryFrom<SchemaObject> for Object
Converts a JSON Schema object to an Object
This implementation handles the conversion of a schema object’s properties to attributes, and processes required fields.
Auto Trait Implementations§
impl Freeze for SchemaObject
impl RefUnwindSafe for SchemaObject
impl Send for SchemaObject
impl Sync for SchemaObject
impl Unpin for SchemaObject
impl UnsafeUnpin for SchemaObject
impl UnwindSafe for SchemaObject
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