Trait common_primitives::schema::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§
sourcefn get_schema_by_id(schema_id: SchemaId) -> Option<SchemaResponse>
fn get_schema_by_id(schema_id: SchemaId) -> Option<SchemaResponse>
Gets the Schema details associated with this SchemaId
if any
sourcefn get_schema_info_by_id(schema_id: SchemaId) -> Option<SchemaInfoResponse>
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.