pub fn build_get_auth_rule_request(
    submitter_did: Option<&str>,
    txn_type: Option<&str>,
    action: Option<&str>,
    field: Option<&str>,
    old_value: Option<&str>,
    new_value: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>
Expand description

Builds a GET_AUTH_RULE request. Request to get authentication rules for a ledger transaction.

NOTE: Either none or all transaction related parameters must be specified (old_value can be skipped for ADD action). * none - to get all authentication rules for all ledger transactions * all - to get authentication rules for specific action (old_value can be skipped for ADD action)

Arguments

  • submitter_did - (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
  • txn_type: (Optional) target ledger transaction alias or associated value.
  • action: (Optional) target action type. Can be either “ADD” or “EDIT”.
  • field: (Optional) target transaction field.
  • old_value: (Optional) old value of field, which can be changed to a new_value (mandatory for EDIT action).
  • new_value: (Optional) new value that can be used to fill the field.

Returns

Request result as json.