pub struct Schema {Show 20 fields
pub type: Option<TypeOrUnion>,
pub format: Option<Format>,
pub title: Option<String>,
pub description: Option<String>,
pub enum: Option<Vec<Value>>,
pub pattern: Option<String>,
pub properties: Option<HashMap<String, Properties>>,
pub example: Option<Value>,
pub examples: Option<Vec<String>>,
pub ref: Option<String>,
pub all_of: Option<Vec<ComponentProperties>>,
pub one_of: Option<Vec<ComponentProperties>>,
pub items: Option<Box<Schema>>,
pub required: Vec<String>,
pub min_items: Option<u64>,
pub max_items: Option<u64>,
pub min_length: Option<u64>,
pub max_length: Option<u64>,
pub minimum: Option<f64>,
pub maximum: Option<f64>,
}Fields§
§type: Option<TypeOrUnion>§format: Option<Format>§title: Option<String>§description: Option<String>§enum: Option<Vec<Value>>§pattern: Option<String>§properties: Option<HashMap<String, Properties>>§example: Option<Value>§examples: Option<Vec<String>>§ref: Option<String>§all_of: Option<Vec<ComponentProperties>>§one_of: Option<Vec<ComponentProperties>>§items: Option<Box<Schema>>§required: Vec<String>§min_items: Option<u64>§max_items: Option<u64>§min_length: Option<u64>§max_length: Option<u64>§minimum: Option<f64>§maximum: Option<f64>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
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