pub struct ArraySchema {
pub items: Option<Box<JsonSchema>>,
pub prefix_items: Option<Vec<JsonSchema>>,
pub min_items: Option<u32>,
pub max_items: Option<u32>,
pub unique_items: Option<bool>,
pub contains: Option<Box<JsonSchema>>,
pub metadata: SchemaMetadata,
}Expand description
Array type schema
Fields§
§items: Option<Box<JsonSchema>>§prefix_items: Option<Vec<JsonSchema>>Tuple validation: each element must match the corresponding schema (JSON Schema 2020-12) In Draft-07, this was called “items” with an array value, but we use prefixItems for clarity
min_items: Option<u32>§max_items: Option<u32>§unique_items: Option<bool>§contains: Option<Box<JsonSchema>>§metadata: SchemaMetadataTrait Implementations§
Source§impl Clone for ArraySchema
impl Clone for ArraySchema
Source§fn clone(&self) -> ArraySchema
fn clone(&self) -> ArraySchema
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 ArraySchema
impl Debug for ArraySchema
Source§impl Default for ArraySchema
impl Default for ArraySchema
Source§fn default() -> ArraySchema
fn default() -> ArraySchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArraySchema
impl<'de> Deserialize<'de> for ArraySchema
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 for ArraySchema
impl PartialEq for ArraySchema
Source§impl Serialize for ArraySchema
impl Serialize for ArraySchema
impl StructuralPartialEq for ArraySchema
Auto Trait Implementations§
impl Freeze for ArraySchema
impl RefUnwindSafe for ArraySchema
impl Send for ArraySchema
impl Sync for ArraySchema
impl Unpin for ArraySchema
impl UnwindSafe for ArraySchema
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