Struct schemars::schema::ObjectValidation
source · 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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)