[−][src]Function indyrs::anoncreds::prover_set_credential_attr_tag_policy
pub fn prover_set_credential_attr_tag_policy(
wallet_handle: WalletHandle,
cred_def_id: &str,
tag_attrs_json: Option<&str>,
retroactive: bool
) -> Box<dyn Future<Item = (), Error = IndyError>>
Set credential attribute tagging policy. Writes a non-secret record marking attributes to tag, and optionally updates tags on existing credentials on the credential definition to match.
The following tags are always present on write:
{
"schema_id":
The policy sets the following tags for each attribute it marks taggable, written to subsequent
credentials and (optionally) all existing credentials on the credential definition:
{
"attr::
Arguments
command_handle: command handle to map callback to user context. wallet_handle: wallet handle (created by Wallet::open_wallet). cred_def_id: credential definition id tag_attrs_json: JSON array with names of attributes to tag by policy, or null for all retroactive: boolean, whether to apply policy to existing credentials on credential definition identifier