pub struct JsonSchemaProperty {
pub prop_type: Option<String>,
pub description: Option<String>,
pub schema_ref: Option<String>,
pub format: Option<String>,
pub items: Option<Box<JsonSchemaProperty>>,
pub properties: HashMap<String, JsonSchemaProperty>,
pub read_only: bool,
pub default: Option<Value>,
pub enum_values: Option<Vec<String>>,
pub enum_descriptions: Option<Vec<String>>,
pub additional_properties: Option<Value>,
pub annotations: Option<Value>,
}Expand description
Property within a JSON Schema properties map.
Fields§
§prop_type: Option<String>§description: Option<String>§schema_ref: Option<String>§format: Option<String>§items: Option<Box<JsonSchemaProperty>>§properties: HashMap<String, JsonSchemaProperty>§read_only: bool§default: Option<Value>§enum_values: Option<Vec<String>>§enum_descriptions: Option<Vec<String>>§additional_properties: Option<Value>§annotations: Option<Value>Extra annotations (e.g. Gmail annotations.required).
Trait Implementations§
Source§impl Clone for JsonSchemaProperty
impl Clone for JsonSchemaProperty
Source§fn clone(&self) -> JsonSchemaProperty
fn clone(&self) -> JsonSchemaProperty
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 JsonSchemaProperty
impl Debug for JsonSchemaProperty
Source§impl Default for JsonSchemaProperty
impl Default for JsonSchemaProperty
Source§fn default() -> JsonSchemaProperty
fn default() -> JsonSchemaProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonSchemaProperty
impl<'de> Deserialize<'de> for JsonSchemaProperty
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
Auto Trait Implementations§
impl Freeze for JsonSchemaProperty
impl RefUnwindSafe for JsonSchemaProperty
impl Send for JsonSchemaProperty
impl Sync for JsonSchemaProperty
impl Unpin for JsonSchemaProperty
impl UnsafeUnpin for JsonSchemaProperty
impl UnwindSafe for JsonSchemaProperty
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