pub struct ObjectValidation {
pub max_properties: Option<u32>,
pub min_properties: Option<u32>,
pub required: Set<String>,
pub properties: Map<String, Schema>,
pub pattern_properties: Map<String, Schema>,
pub additional_properties: Option<Box<Schema>>,
pub property_names: Option<Box<Schema>>,
}Expand description
Properties of a SchemaObject which define validation assertions for objects.
Fields§
§max_properties: Option<u32>The maxProperties keyword.
min_properties: Option<u32>The minProperties keyword.
required: Set<String>The required keyword.
properties: Map<String, Schema>The properties keyword.
pattern_properties: Map<String, Schema>The patternProperties keyword.
additional_properties: Option<Box<Schema>>The additionalProperties keyword.
property_names: Option<Box<Schema>>The propertyNames keyword.
Trait Implementations§
Source§impl Clone for ObjectValidation
impl Clone for ObjectValidation
Source§fn clone(&self) -> ObjectValidation
fn clone(&self) -> ObjectValidation
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 ObjectValidation
impl Debug for ObjectValidation
Source§impl Default for ObjectValidation
impl Default for ObjectValidation
Source§fn default() -> ObjectValidation
fn default() -> ObjectValidation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectValidationwhere
ObjectValidation: Default,
impl<'de> Deserialize<'de> for ObjectValidationwhere
ObjectValidation: Default,
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 ObjectValidation
impl PartialEq for ObjectValidation
Source§impl Serialize for ObjectValidation
impl Serialize for ObjectValidation
impl StructuralPartialEq for ObjectValidation
Auto Trait Implementations§
impl Freeze for ObjectValidation
impl RefUnwindSafe for ObjectValidation
impl Send for ObjectValidation
impl Sync for ObjectValidation
impl Unpin for ObjectValidation
impl UnwindSafe for ObjectValidation
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