pub struct ObjectSchema<DS, AS, OS> {
pub properties: Option<HashMap<String, DataSchema<DS, AS, OS>>>,
pub required: Option<Vec<String>>,
pub other: OS,
}Expand description
A JSON object metadata.
Fields§
§properties: Option<HashMap<String, DataSchema<DS, AS, OS>>>Data schema nested definitions.
required: Option<Vec<String>>Defines which members of the object type are mandatory.
other: OSObject schema extension.
Trait Implementations§
Source§impl<DS: Clone, AS: Clone, OS: Clone> Clone for ObjectSchema<DS, AS, OS>
impl<DS: Clone, AS: Clone, OS: Clone> Clone for ObjectSchema<DS, AS, OS>
Source§fn clone(&self) -> ObjectSchema<DS, AS, OS>
fn clone(&self) -> ObjectSchema<DS, AS, OS>
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<DS, AS, OS> Default for ObjectSchema<DS, AS, OS>where
OS: Default,
impl<DS, AS, OS> Default for ObjectSchema<DS, AS, OS>where
OS: Default,
Source§impl<'de, DS, AS, OS> Deserialize<'de> for ObjectSchema<DS, AS, OS>
impl<'de, DS, AS, OS> Deserialize<'de> for ObjectSchema<DS, AS, OS>
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<DS, AS, OS> Serialize for ObjectSchema<DS, AS, OS>
impl<DS, AS, OS> Serialize for ObjectSchema<DS, AS, OS>
impl<DS, AS, OS> StructuralPartialEq for ObjectSchema<DS, AS, OS>
Auto Trait Implementations§
impl<DS, AS, OS> Freeze for ObjectSchema<DS, AS, OS>where
OS: Freeze,
impl<DS, AS, OS> RefUnwindSafe for ObjectSchema<DS, AS, OS>
impl<DS, AS, OS> Send for ObjectSchema<DS, AS, OS>
impl<DS, AS, OS> Sync for ObjectSchema<DS, AS, OS>
impl<DS, AS, OS> Unpin for ObjectSchema<DS, AS, OS>
impl<DS, AS, OS> UnwindSafe for ObjectSchema<DS, AS, OS>
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