common_primitives::schema

Trait SchemaProvider

Source
pub trait SchemaProvider<SchemaId> {
    // Required methods
    fn get_schema_by_id(schema_id: SchemaId) -> Option<SchemaResponse>;
    fn get_schema_info_by_id(schema_id: SchemaId) -> Option<SchemaInfoResponse>;
}
Expand description

This allows other pallets to resolve Schema information. With generic SchemaId

Required Methods§

Source

fn get_schema_by_id(schema_id: SchemaId) -> Option<SchemaResponse>

Gets the Schema details associated with this SchemaId if any

Source

fn get_schema_info_by_id(schema_id: SchemaId) -> Option<SchemaInfoResponse>

Gets the Schema Info associated with this SchemaId if any

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§