pub struct StringSchema;
Expand description
A schema with arbitrary string primitives.
Trait Implementations§
Source§impl FromSchema<NoSchema> for StringSchema
impl FromSchema<NoSchema> for StringSchema
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
Source§impl<S> FromSchema<S> for S
impl<S> FromSchema<S> for S
Source§type Error = Infallible
type Error = Infallible
The conversion error type.
Source§fn convert_primitive(
primitive: <S as Schema>::Primitive,
) -> Result<<S as Schema>::Primitive, <S as FromSchema<S>>::Error>
fn convert_primitive( primitive: <S as Schema>::Primitive, ) -> Result<<S as Schema>::Primitive, <S as FromSchema<S>>::Error>
Converts a primitive of the other schema to a primitive of this schema.
Source§fn convert_instance(
_instance: &mut Instance,
_primitive: &<S as Schema>::Primitive,
) -> Result<(), <S as FromSchema<S>>::Error>
fn convert_instance( _instance: &mut Instance, _primitive: &<S as Schema>::Primitive, ) -> Result<(), <S as FromSchema<S>>::Error>
Converts an instance from the other schema to a new instance
based on its associated primitive.