pub struct ObjectType {
pub properties: Vec<Property>,
pub pattern_properties: Vec<PatternProperty>,
pub additional_properties: AdditionalProperties,
pub property_names: Option<TypeRef>,
pub constraints: ObjectConstraints,
}Fields§
§properties: Vec<Property>§pattern_properties: Vec<PatternProperty>JSON Schema patternProperties — each entry pairs an ECMA-262
regex against the schema that property values whose name
matches the regex must satisfy. Orthogonal to properties
(which match by exact name) and to additional_properties
(the fallback for names that match neither). Empty when the
keyword is absent.
additional_properties: AdditionalProperties§property_names: Option<TypeRef>JSON Schema propertyNames — a schema every property name in
the object must validate against. Names are always strings, so
this points at a string-shaped type (typically carrying a
pattern / min_length / max_length constraint). None
when the keyword is absent.
constraints: ObjectConstraintsTrait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
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 ObjectType
impl Debug for ObjectType
Source§impl<'de> Deserialize<'de> for ObjectType
impl<'de> Deserialize<'de> for ObjectType
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 ObjectType
impl PartialEq for ObjectType
Source§fn eq(&self, other: &ObjectType) -> bool
fn eq(&self, other: &ObjectType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObjectType
impl Serialize for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl UnwindSafe for ObjectType
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