Trait SchemasApiClient

Source
pub trait SchemasApiClient<BlockHash>: ClientT
where BlockHash: Send + Sync + 'static,
{ // Provided method fn get_by_schema_id<'life0, 'async_trait>( &'life0 self, schema_id: SchemaId, ) -> Pin<Box<dyn Future<Output = Result<Option<SchemaResponse>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the SchemasApi RPC API.

Provided Methods§

Source

fn get_by_schema_id<'life0, 'async_trait>( &'life0 self, schema_id: SchemaId, ) -> Pin<Box<dyn Future<Output = Result<Option<SchemaResponse>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

retrieving schema by schema id

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<TypeJsonRpseeInteral, BlockHash> SchemasApiClient<BlockHash> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, BlockHash: Send + Sync + 'static,