pub struct ObjectLiteral {
pub properties: BTreeMap<String, Schema>,
pub required: Vec<String>,
}
Expand description
The constraints that may be applied to an object literal schema.
Fields§
§properties: BTreeMap<String, Schema>
The properties that the object might have.
required: Vec<String>
A list of properties that the object must have.
Trait Implementations§
Source§impl Clone for ObjectLiteral
impl Clone for ObjectLiteral
Source§fn clone(&self) -> ObjectLiteral
fn clone(&self) -> ObjectLiteral
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 ObjectLiteral
impl Debug for ObjectLiteral
Source§impl<'de> Deserialize<'de> for ObjectLiteral
impl<'de> Deserialize<'de> for ObjectLiteral
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 ObjectLiteral
impl RefUnwindSafe for ObjectLiteral
impl Send for ObjectLiteral
impl Sync for ObjectLiteral
impl Unpin for ObjectLiteral
impl UnwindSafe for ObjectLiteral
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