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

Object Safety§

This trait is not object safe.

Implementors§