pub trait CredentialDefinitionModule {
// Required methods
fn create<'life0, 'async_trait>(
&'life0 self,
options: CredentialDefinitionCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<CredentialDefinitionCreateResponse>> + 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<CredentialDefinition>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CredentialDefinitionGetAllResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generic cloudagent credential definition module
Required Methods§
Sourcefn create<'life0, 'async_trait>(
&'life0 self,
options: CredentialDefinitionCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<CredentialDefinitionCreateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
options: CredentialDefinitionCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<CredentialDefinitionCreateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Register a credential definition on the ledger