pub struct TupleValidator {
pub type_: TupleValidator_,
pub id: Option<Box<String>>,
pub items: Option<Vec<ValidatorTypes>>,
}
Expand description
A validator specifying constraints on an array of heterogeneous items.
Fields§
§type_: TupleValidator_
The name of this type
id: Option<Box<String>>
The identifier for this item.
items: Option<Vec<ValidatorTypes>>
An array of validators specifying the constraints on each successive item in the array.
Trait Implementations§
Source§impl Clone for TupleValidator
impl Clone for TupleValidator
Source§fn clone(&self) -> TupleValidator
fn clone(&self) -> TupleValidator
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 TupleValidator
impl Debug for TupleValidator
Source§impl Default for TupleValidator
impl Default for TupleValidator
Source§impl<'de> Deserialize<'de> for TupleValidatorwhere
TupleValidator: Default,
impl<'de> Deserialize<'de> for TupleValidatorwhere
TupleValidator: 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
Auto Trait Implementations§
impl Freeze for TupleValidator
impl RefUnwindSafe for TupleValidator
impl Send for TupleValidator
impl Sync for TupleValidator
impl Unpin for TupleValidator
impl UnwindSafe for TupleValidator
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