Function libindy_sys::indy_add_wallet_record_tags[][src]

pub unsafe extern "C" fn indy_add_wallet_record_tags(
    command_handle: indy_handle_t,
    wallet_handle: indy_handle_t,
    type_: *const c_char,
    id: *const c_char,
    tags_json: *const c_char,
    cb: indy_empty_cb
) -> indy_error_t

Add new tags to the wallet record

#Params command_handle: command handle to map callback to caller context wallet_handle: wallet handle (created by open_wallet) type_: 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