pub struct StringSchema { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Debug for StringSchema
impl Debug for StringSchema
Source§impl Schema<String> for StringSchema
impl Schema<String> for StringSchema
fn validate(&self, value: &Value) -> ValidateResult<String>
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 StringSchema
impl RefUnwindSafe for StringSchema
impl Send for StringSchema
impl Sync for StringSchema
impl Unpin for StringSchema
impl UnwindSafe for StringSchema
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