Trait HasSchema

Source
pub trait HasSchema<Value>: HasSchemaType {
    // Required method
    fn schema(&self, phantom: PhantomData<Value>) -> &Self::Schema;
}

Required Methods§

Source

fn schema(&self, phantom: PhantomData<Value>) -> &Self::Schema

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Encoding, Value> HasSchema<Value> for Encoding
where Encoding: HasSchemaType + HasComponents, Encoding::Components: SchemaGetter<Encoding, Value>,