pub struct SubschemaValidation {
pub all_of: Option<Vec<Schema>>,
pub any_of: Option<Vec<Schema>>,
pub one_of: Option<Vec<Schema>>,
pub not: Option<Box<Schema>>,
pub if_schema: Option<Box<Schema>>,
pub then_schema: Option<Box<Schema>>,
pub else_schema: Option<Box<Schema>>,
}
Expand description
Properties of a SchemaObject
which define validation assertions in terms of other schemas.
Fields§
§all_of: Option<Vec<Schema>>
The allOf
keyword.
any_of: Option<Vec<Schema>>
The anyOf
keyword.
one_of: Option<Vec<Schema>>
The oneOf
keyword.
not: Option<Box<Schema>>
The not
keyword.
if_schema: Option<Box<Schema>>
The if
keyword.
then_schema: Option<Box<Schema>>
The then
keyword.
else_schema: Option<Box<Schema>>
The else
keyword.
Trait Implementations§
Source§impl Clone for SubschemaValidation
impl Clone for SubschemaValidation
Source§fn clone(&self) -> SubschemaValidation
fn clone(&self) -> SubschemaValidation
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 SubschemaValidation
impl Debug for SubschemaValidation
Source§impl Default for SubschemaValidation
impl Default for SubschemaValidation
Source§fn default() -> SubschemaValidation
fn default() -> SubschemaValidation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubschemaValidationwhere
SubschemaValidation: Default,
impl<'de> Deserialize<'de> for SubschemaValidationwhere
SubschemaValidation: 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 SubschemaValidation
impl PartialEq for SubschemaValidation
Source§impl Serialize for SubschemaValidation
impl Serialize for SubschemaValidation
impl StructuralPartialEq for SubschemaValidation
Auto Trait Implementations§
impl Freeze for SubschemaValidation
impl RefUnwindSafe for SubschemaValidation
impl Send for SubschemaValidation
impl Sync for SubschemaValidation
impl Unpin for SubschemaValidation
impl UnwindSafe for SubschemaValidation
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
)