[−][src]Function indyrs::anoncreds::prover_search_credentials
pub fn prover_search_credentials(
wallet_handle: WalletHandle,
query_json: Option<&str>
) -> Box<dyn Future<Item = (SearchHandle, usize), Error = IndyError>>
Search for credentials stored in wallet. Credentials can be filtered by tags created during saving of credential.
Instead of immediately returning of fetched credentials this call returns search_handle that can be used later to fetch records by small batches (with fetch_credentials).
Arguments
wallet_handle
: wallet handle (created by Wallet::open_wallet).query_json
: Wql query filter for credentials searching based on tags. where query: indy-sdk/doc/design/011-wallet-query-language/README.md
Returns
search_handle
: Search handle that can be used later to fetch records by small batches (with fetch_credentials)total_count
: Total count of records