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>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

    let err = _build_get_auth_rule_request(command_handle, submitter_did, txn_type, action, field, old_value, new_value, cb);

    ResultHandler::str(command_handle, err, receiver)
}
/// 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.
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)
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 )
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>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
    let err = _build_get_auth_rule_request(command_handle, submitter_did, txn_type, action, field, old_value, new_value, cb);
    ResultHandler::str(command_handle, err, receiver)
}
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 > > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = _build_get_auth_rule_request ( command_handle , submitter_did , txn_type , action , field , old_value , new_value , cb ) ; ResultHandler :: str ( command_handle , err , receiver ) }
Builds a GET_AUTH_RULE request.
Builds a 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>
Request result as json.
Request result as json .
submitter_did
Option<&str>
txn_type
Option<&str>
action
Option<&str>
field
Option<&str>
old_value
Option<&str>
new_value
Option<&str>