pub enum SchemaContents {
Reference {
reference: String,
},
Literal(Literal),
AllOf {
all_of: Vec<Schema>,
},
AnyOf {
any_of: Vec<Schema>,
},
OneOf {
one_of: Vec<Schema>,
},
}
Expand description
The content of a schema.
Variants§
Reference
The schema contains a reference to another schema.
Literal(Literal)
The schema contains a literal value.
AllOf
The schema is made of a combination of other schemas.
The final object must match all of the schemas.
AnyOf
The schema is made of a combination of other schemas.
The final object must match any of the schemas.
OneOf
The schema is made of a combination of other schemas.
The final object must match exactly one of the schemas.
Trait Implementations§
Source§impl Clone for SchemaContents
impl Clone for SchemaContents
Source§fn clone(&self) -> SchemaContents
fn clone(&self) -> SchemaContents
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 SchemaContents
impl Debug for SchemaContents
Source§impl Default for SchemaContents
impl Default for SchemaContents
Source§impl<'de> Deserialize<'de> for SchemaContents
impl<'de> Deserialize<'de> for SchemaContents
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 SchemaContents
impl RefUnwindSafe for SchemaContents
impl Send for SchemaContents
impl Sync for SchemaContents
impl Unpin for SchemaContents
impl UnwindSafe for SchemaContents
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