[−][src]Function indyrs::wallet::register_wallet_storage
pub fn register_wallet_storage(
xtype: &str,
create: Option<WalletCreate>,
open: Option<WalletOpen>,
close: Option<WalletClose>,
delete: Option<WalletDelete>,
add_record: Option<WalletAddRecord>,
update_record_value: Option<WalletUpdateRecordValue>,
update_record_tags: Option<WalletUpdateRecordTags>,
add_record_tags: Option<WalletAddRecordTags>,
delete_record_tags: Option<WalletDeleteRecordTags>,
delete_record: Option<WalletDeleteRecord>,
get_record: Option<WalletGetRecord>,
get_record_id: Option<WalletGetRecordId>,
get_record_type: Option<WalletGetRecordType>,
get_record_value: Option<WalletGetRecordValue>,
get_record_tags: Option<WalletGetRecordTags>,
free_record: Option<WalletFreeRecord>,
get_storage_metadata: Option<WalletGetStorageMetadata>,
set_storage_metadata: Option<WalletSetStorageMetadata>,
free_storage_metadata: Option<WalletFreeStorageMetadata>,
search_records: Option<WalletSearchRecords>,
search_all_records: Option<WalletSearchAllRecords>,
get_search_total_count: Option<WalletGetSearchTotalCount>,
fetch_search_next_record: Option<WalletFetchSearchNextRecord>,
free_search: Option<WalletFreeSearch>
) -> Box<dyn Future<Item = (), Error = IndyError>>
Registers custom wallet implementation.
It allows library user to provide custom wallet implementation.
Arguments
command_handle
- Command handle to map callback to caller context.xtype
- Wallet type name.create
- WalletType create operation handleropen
- WalletType open operation handlerset
- Wallet set operation handlerget
- Wallet get operation handlerget_not_expired
- Wallet get_not_expired operation handlerlist
- Wallet list operation handler(must to return data in the following format: {"values":[{"key":"", "value":""}, {"key":"", "value":""}]}close
- Wallet close operation handlerdelete
- WalletType delete operation handlerfree
- Handler that allows to de-allocate strings allocated in caller code