pub struct TupleSchema { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for TupleSchema
impl Clone for TupleSchema
Source§fn clone(&self) -> TupleSchema
fn clone(&self) -> TupleSchema
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 TupleSchema
impl Debug for TupleSchema
Source§impl Default for TupleSchema
impl Default for TupleSchema
Source§impl Schema<Value> for TupleSchema
impl Schema<Value> for TupleSchema
Source§fn validate(&self, value: &Value) -> ValidateResult<Value>
fn validate(&self, value: &Value) -> ValidateResult<Value>
Validates the value against this schema and returns the validated result.
Source§fn parse(&self, value: &Value) -> T
fn parse(&self, value: &Value) -> T
Validates and returns the result, panicking on validation failure. Read more
Source§fn safe_parse(&self, value: &Value) -> ValidateResult<T>
fn safe_parse(&self, value: &Value) -> ValidateResult<T>
Validates the value and returns a Result. This is the recommended method for handling
validation in production code.
fn optional(self) -> OptionalSchema<Self, T>where
Self: Sized,
fn array(self) -> ArraySchema<Self, T>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for TupleSchema
impl !RefUnwindSafe for TupleSchema
impl Send for TupleSchema
impl Sync for TupleSchema
impl Unpin for TupleSchema
impl !UnwindSafe for TupleSchema
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