Struct schemars::schema::SubschemaValidation
source · [−]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
sourceimpl Clone for SubschemaValidation
impl Clone for SubschemaValidation
sourcefn clone(&self) -> SubschemaValidation
fn clone(&self) -> SubschemaValidation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SubschemaValidation
impl Debug for SubschemaValidation
sourceimpl Default for SubschemaValidation
impl Default for SubschemaValidation
sourcefn default() -> SubschemaValidation
fn default() -> SubschemaValidation
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SubschemaValidation where
SubschemaValidation: Default,
impl<'de> Deserialize<'de> for SubschemaValidation where
SubschemaValidation: Default,
sourcefn 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
sourceimpl PartialEq<SubschemaValidation> for SubschemaValidation
impl PartialEq<SubschemaValidation> for SubschemaValidation
sourcefn eq(&self, other: &SubschemaValidation) -> bool
fn eq(&self, other: &SubschemaValidation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SubschemaValidation) -> bool
fn ne(&self, other: &SubschemaValidation) -> bool
This method tests for !=
.
sourceimpl Serialize for SubschemaValidation
impl Serialize for SubschemaValidation
impl StructuralPartialEq for SubschemaValidation
Auto Trait Implementations
impl RefUnwindSafe for SubschemaValidation
impl Send for SubschemaValidation
impl Sync for SubschemaValidation
impl Unpin for SubschemaValidation
impl UnwindSafe for SubschemaValidation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more