#[non_exhaustive]pub struct Schema {Show 23 fields
pub type: SchemaType,
pub format: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub nullable: Option<bool>,
pub enum: Vec<String>,
pub properties: BTreeMap<String, Schema>,
pub required: Vec<String>,
pub any_of: Vec<Schema>,
pub property_ordering: Vec<String>,
pub items: Option<Box<Schema>>,
pub minimum: Option<f64>,
pub maximum: Option<f64>,
pub max_items: Option<String>,
pub min_items: Option<String>,
pub min_properties: Option<String>,
pub max_properties: Option<String>,
pub min_length: Option<String>,
pub max_length: Option<String>,
pub pattern: Option<String>,
pub example: Option<Value>,
pub default: Option<Value>,
pub extra: ExtraFields,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: SchemaType§format: Option<String>§title: Option<String>§description: Option<String>§nullable: Option<bool>§enum: Vec<String>§properties: BTreeMap<String, Schema>§required: Vec<String>§any_of: Vec<Schema>§property_ordering: Vec<String>§items: Option<Box<Schema>>§minimum: Option<f64>§maximum: Option<f64>§max_items: Option<String>§min_items: Option<String>§min_properties: Option<String>§max_properties: Option<String>§min_length: Option<String>§max_length: Option<String>§pattern: Option<String>§example: Option<Value>§default: Option<Value>§extra: ExtraFieldsImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
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
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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