[][src]Function indyrs::ledger::build_get_auth_rule_request

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>>

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

  • txn_type: target ledger transaction alias or associated value.
  • action: target action type. Can be either "ADD" or "EDIT".
  • field: target transaction field.
  • old_value: old value of field, which can be changed to a new_value (must be specified for EDIT action).
  • new_value: new value that can be used to fill the field.

Returns

Request result as json.