pub struct NoSchema;
Expand description
A schema with no primitives.
Trait Implementations§
Source§impl FromSchema<NoSchema> for StringSchema
impl FromSchema<NoSchema> for StringSchema
Auto Trait Implementations§
impl Freeze for NoSchema
impl RefUnwindSafe for NoSchema
impl Send for NoSchema
impl Sync for NoSchema
impl Unpin for NoSchema
impl UnwindSafe for NoSchema
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.