Struct openapiv3::SchemaData
source · pub struct SchemaData {
pub nullable: bool,
pub read_only: bool,
pub write_only: bool,
pub deprecated: bool,
pub external_docs: Option<ExternalDocumentation>,
pub example: Option<Value>,
pub title: Option<String>,
pub description: Option<String>,
pub discriminator: Option<Discriminator>,
pub default: Option<Value>,
pub extensions: IndexMap<String, Value>,
}
Fields§
§nullable: bool
§read_only: bool
§write_only: bool
§deprecated: bool
§external_docs: Option<ExternalDocumentation>
§example: Option<Value>
§title: Option<String>
§description: Option<String>
§discriminator: Option<Discriminator>
§default: Option<Value>
§extensions: IndexMap<String, Value>
Inline extensions to this object.
Trait Implementations§
source§impl Clone for SchemaData
impl Clone for SchemaData
source§fn clone(&self) -> SchemaData
fn clone(&self) -> SchemaData
Returns a copy 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 SchemaData
impl Debug for SchemaData
source§impl Default for SchemaData
impl Default for SchemaData
source§fn default() -> SchemaData
fn default() -> SchemaData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SchemaData
impl<'de> Deserialize<'de> for SchemaData
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<SchemaData> for SchemaData
impl PartialEq<SchemaData> for SchemaData
source§fn eq(&self, other: &SchemaData) -> bool
fn eq(&self, other: &SchemaData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.