CredentialDefinitionModule

Trait CredentialDefinitionModule 

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

Source

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

Source

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,

Get the registered credential definition by id

Source

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,

Get all the registered credential definitions

Implementors§