[][src]Function indyrs::wallet::open_wallet_search

pub fn open_wallet_search(
    wallet_handle: IndyHandle,
    xtype: &str,
    query_json: &str,
    options_json: &str
) -> Box<dyn Future<Item = IndyHandle, Error = IndyError>>

Search for wallet records.

Note instead of immediately returning of fetched records this call returns wallet_search_handle that can be used later to fetch records by small batches (with indy_fetch_wallet_search_next_records).

Arguments

  • wallet_handle - wallet handle (created by open_wallet)
  • xtype - 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 bitmaks { 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, false by default) Retrieve record tags, }

Returns

  • search_handle - Wallet search handle that can be used later to fetch records by small batches (with indy_fetch_wallet_search_next_records)