[][src]Function indyrs::wallet::add_wallet_record_tags

pub fn add_wallet_record_tags(
    wallet_handle: IndyHandle,
    xtype: &str,
    id: &str,
    tags_json: &str
) -> Box<dyn Future<Item = (), Error = IndyError>>

Add new tags to the wallet record

Arguments

  • wallet_handle - wallet handle (created by open_wallet)
  • xtype - allows to separate different record types collections
  • id - the id of record
  • tags_json - the record tags used for search and storing meta information as json: { "tagName1": , // string tag (will be stored encrypted) "tagName2": , // string tag (will be stored encrypted) "~tagName3": , // string tag (will be stored un-encrypted) "~tagName4": , // string tag (will be stored un-encrypted) } If tag name starts with "~" the tag will be stored un-encrypted that will allow usage of this tag in complex search queries (comparison, predicates) Encrypted tags can be searched only for exact matching Note if some from provided tags already assigned to the record than corresponding tags values will be replaced