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§
Sourcefn 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 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