pub struct ArraySchema<S, T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S: Clone, T: Clone> Clone for ArraySchema<S, T>
impl<S: Clone, T: Clone> Clone for ArraySchema<S, T>
Source§fn clone(&self) -> ArraySchema<S, T>
fn clone(&self) -> ArraySchema<S, T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, T> Schema<Vec<T>> for ArraySchema<S, T>
impl<S, T> Schema<Vec<T>> for ArraySchema<S, T>
Source§fn validate(&self, value: &Value) -> ValidateResult<Vec<T>>
fn validate(&self, value: &Value) -> ValidateResult<Vec<T>>
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<S, T> Freeze for ArraySchema<S, T>where
S: Freeze,
impl<S, T> RefUnwindSafe for ArraySchema<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for ArraySchema<S, T>
impl<S, T> Sync for ArraySchema<S, T>
impl<S, T> Unpin for ArraySchema<S, T>
impl<S, T> UnsafeUnpin for ArraySchema<S, T>where
S: UnsafeUnpin,
impl<S, T> UnwindSafe for ArraySchema<S, T>where
S: UnwindSafe,
T: UnwindSafe,
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