pub struct BooleanSchema;
Implementations§
Source§impl BooleanSchema
impl BooleanSchema
Trait Implementations§
Source§impl Clone for BooleanSchema
impl Clone for BooleanSchema
Source§fn clone(&self) -> BooleanSchema
fn clone(&self) -> BooleanSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BooleanSchema
impl Debug for BooleanSchema
Source§impl Schema<bool> for BooleanSchema
impl Schema<bool> for BooleanSchema
fn validate(&self, value: &Value) -> ValidateResult<bool>
fn parse(&self, value: &Value) -> T
fn safe_parse(&self, value: &Value) -> ValidateResult<T>
fn optional(self) -> OptionalSchema<Self, T>where
Self: Sized,
fn array(self) -> ArraySchema<Self, T>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for BooleanSchema
impl RefUnwindSafe for BooleanSchema
impl Send for BooleanSchema
impl Sync for BooleanSchema
impl Unpin for BooleanSchema
impl UnwindSafe for BooleanSchema
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