pub struct SchemaObject {
pub schema_type: String,
pub properties: Option<IndexMap<String, Box<Schema>>>,
pub required: Option<Vec<String>>,
pub format: Option<String>,
pub items: Option<Box<Schema>>,
pub minimum: Option<f64>,
pub maximum: Option<f64>,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
pub pattern: Option<String>,
pub description: Option<String>,
}Fields§
§schema_type: String§properties: Option<IndexMap<String, Box<Schema>>>§required: Option<Vec<String>>§format: Option<String>§items: Option<Box<Schema>>§minimum: Option<f64>§maximum: Option<f64>§min_length: Option<usize>§max_length: Option<usize>§pattern: Option<String>§description: Option<String>Trait Implementations§
Source§impl Clone for SchemaObject
impl Clone for SchemaObject
Source§fn clone(&self) -> SchemaObject
fn clone(&self) -> SchemaObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaObject
impl Debug for SchemaObject
Source§impl<'de> Deserialize<'de> for SchemaObject
impl<'de> Deserialize<'de> for SchemaObject
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 SchemaObject
impl RefUnwindSafe for SchemaObject
impl Send for SchemaObject
impl Sync for SchemaObject
impl Unpin for SchemaObject
impl UnsafeUnpin for SchemaObject
impl UnwindSafe for SchemaObject
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