Trait SchemaModule

Source
pub trait SchemaModule {
    // Required methods
    fn create<'life0, 'async_trait>(
        &'life0 self,
        options: SchemaCreateOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_by_id<'life0, 'async_trait>(
        &'life0 self,
        id: String,
    ) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_all<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<SchemasGetAllResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generic cloudagent schema module

Required Methods§

Source

fn create<'life0, 'async_trait>( &'life0 self, options: SchemaCreateOptions, ) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a schema on the ledger

Source

fn get_by_id<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Request the schema by the id

Source

fn get_all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<SchemasGetAllResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all the registerd schemas

Implementors§