Type Definition libindy_sys::indyWalletOpenSearchCb[][src]

type indyWalletOpenSearchCb = Option<unsafe extern "C" fn(handle: indy_handle_t, type_: *const c_char, query: *const c_char, options: *const c_char, search_handle: *mut i32) -> indy_error_t>;

Search for wallet storage records

#Params storage_handle: opened storage handle (See open handler) type_: allows to separate different record types collections query_json: MongoDB style query to wallet record tags: { "tagName": "tagValue", $or: { "tagName2": { $regex: 'pattern' }, "tagName3": { $gte: 123 }, }, } options_json: //TODO: FIXME: Think about replacing by bitmask { retrieveRecords: (optional, true by default) If false only "counts" will be calculated, retrieveTotalCount: (optional, false by default) Calculate total count, retrieveType: (optional, false by default) Retrieve record type, retrieveValue: (optional, true by default) Retrieve record value, retrieveTags: (optional, true by default) Retrieve record tags, } search_handle_p: pointer to store wallet search handle