pub struct JsonSchema2020 {Show 18 fields
pub schema: Option<String>,
pub id: Option<String>,
pub reference: Option<String>,
pub schema_type: Option<TypeArray>,
pub title: Option<String>,
pub description: Option<String>,
pub default: Option<Value>,
pub const_value: Option<Value>,
pub enum_values: Option<Vec<Value>>,
pub format: Option<String>,
pub items: Option<Box<JsonSchema2020>>,
pub properties: Option<BTreeMap<String, JsonSchema2020>>,
pub required: Option<Vec<String>>,
pub additional_properties: Option<Box<AdditionalProperties>>,
pub one_of: Option<Vec<JsonSchema2020>>,
pub any_of: Option<Vec<JsonSchema2020>>,
pub all_of: Option<Vec<JsonSchema2020>>,
pub example: Option<Value>,
}Expand description
JSON Schema 2020-12 schema definition
Fields§
§schema: Option<String>§id: Option<String>§reference: Option<String>§schema_type: Option<TypeArray>§title: Option<String>§description: Option<String>§default: Option<Value>§const_value: Option<Value>§enum_values: Option<Vec<Value>>§format: Option<String>§items: Option<Box<JsonSchema2020>>§properties: Option<BTreeMap<String, JsonSchema2020>>§required: Option<Vec<String>>§additional_properties: Option<Box<AdditionalProperties>>§one_of: Option<Vec<JsonSchema2020>>§any_of: Option<Vec<JsonSchema2020>>§all_of: Option<Vec<JsonSchema2020>>§example: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for JsonSchema2020
impl Clone for JsonSchema2020
Source§fn clone(&self) -> JsonSchema2020
fn clone(&self) -> JsonSchema2020
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 JsonSchema2020
impl Debug for JsonSchema2020
Source§impl Default for JsonSchema2020
impl Default for JsonSchema2020
Source§fn default() -> JsonSchema2020
fn default() -> JsonSchema2020
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonSchema2020
impl<'de> Deserialize<'de> for JsonSchema2020
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 PartialEq for JsonSchema2020
impl PartialEq for JsonSchema2020
Source§impl Serialize for JsonSchema2020
impl Serialize for JsonSchema2020
impl StructuralPartialEq for JsonSchema2020
Auto Trait Implementations§
impl Freeze for JsonSchema2020
impl RefUnwindSafe for JsonSchema2020
impl Send for JsonSchema2020
impl Sync for JsonSchema2020
impl Unpin for JsonSchema2020
impl UnwindSafe for JsonSchema2020
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