/// Builds a AUTH_RULES request. Request to change multiple authentication rules for a ledger transaction.
///
/// # Arguments
/// * `submitter_did` - Identifier (DID) of the transaction author as base58-encoded string.
///                Actual request sender may differ if Endorser is used (look at `append_request_endorser`)
/// * `data`: a list of auth rules: [
///     {
///         "auth_type": ledger transaction alias or associated value,
///         "auth_action": type of an action,
///         "field": transaction field,
///         "old_value": (Optional) old value of a 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,
///         "constraint": set of constraints required for execution of an action in the format described above for `build_auth_rule_request` function.
///     }
/// ]
///
/// # Returns
/// Request result as json.
Builds a AUTH_RULES request. Request to change multiple authentication rules for a ledger transaction.
Builds a AUTH_RULES request . Request to change multiple authentication rules for a ledger transaction .
pub fn build_auth_rules_request(submitter_did: &str, data: &str) -> Box<dyn Future<Item=String, Error=IndyError>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
    let err = _build_auth_rules_request(command_handle, submitter_did, data, cb);
    ResultHandler::str(command_handle, err, receiver)
}
pub fn build_auth_rules_request ( submitter_did : & str , data : & str ) -> Box < dyn Future < Item = String , Error = IndyError > > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = _build_auth_rules_request ( command_handle , submitter_did , data , cb ) ; ResultHandler :: str ( command_handle , err , receiver ) }
Builds a AUTH_RULES request.
Builds a AUTH_RULES request .
Request result as json.
Request result as json .
submitter_did
&str
data
&str