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 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
§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.