Trait pallet_schemas_rpc::SchemasApiClient
source · pub trait SchemasApiClient<BlockHash>: ClientT{
// Provided methods
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 { ... }
fn check_schema_validity<'life0, 'async_trait>(
&'life0 self,
model: Vec<u8>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_versions<'life0, 'async_trait>(
&'life0 self,
schema_name: String
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<SchemaVersionResponse>>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the SchemasApi
RPC API.
Provided Methods§
sourcefn 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,
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
sourcefn check_schema_validity<'life0, 'async_trait>(
&'life0 self,
model: Vec<u8>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn check_schema_validity<'life0, 'async_trait>(
&'life0 self,
model: Vec<u8>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
validates a schema model and returns true
if the model is correct.
Object Safety§
This trait is not object safe.