pub fn append_txn_author_agreement_acceptance_to_request(request_json: &str,
                                                         text: Option<&str>,
                                                         version: Option<&str>,
                                                         taa_digest: Option<&str>,
                                                         mechanism: &str,
                                                         time: u64) -> Box<dyn Future<Item=String, Error=IndyError>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

    let err = _append_txn_author_agreement_acceptance_to_request(command_handle, request_json, text, version, taa_digest, mechanism, time, cb);

    ResultHandler::str(command_handle, err, receiver)
}
/// Append transaction author agreement acceptance data to a request.
/// This function should be called before signing and sending a request
/// if there is any transaction author agreement set on the Ledger.
///
/// This function may calculate digest by itself or consume it as a parameter.
/// If all text, version and taa_digest parameters are specified, a check integrity of them will be done.
///
/// # Arguments
/// * `request_json`: original request data json.
/// * `text` and `version`: (optional) raw data about TAA from ledger.
///     These parameters should be passed together.
///     These parameters are required if taa_digest parameter is omitted.
/// * `taa_digest`: (optional) digest on text and version.
///     Digest is sha256 hash calculated on concatenated strings: version || text.
///     This parameter is required if text and version parameters are omitted.
/// * `mechanism`: mechanism how user has accepted the TAA
/// * `time`: UTC timestamp when user has accepted the TAA. Note that the time portion will be discarded to avoid a privacy risk.
///
/// # Returns
/// Updated request result as json.
Append transaction author agreement acceptance data to a request.
This function should be called before signing and sending a request
if there is any transaction author agreement set on the Ledger.

This function may calculate digest by itself or consume it as a parameter.
If all text, version and taa_digest parameters are specified, a check integrity of them will be done.
Append transaction author agreement acceptance data to a request . This function should be called before signing and sending a request if there is any transaction author agreement set on the Ledger . This function may calculate digest by itself or consume it as a parameter . If all text version and taa_digest parameters are specified a check integrity of them will be done .
pub fn append_txn_author_agreement_acceptance_to_request(request_json: &str,
                                                         text: Option<&str>,
                                                         version: Option<&str>,
                                                         taa_digest: Option<&str>,
                                                         mechanism: &str,
                                                         time: u64) -> Box<dyn Future<Item=String, Error=IndyError>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
    let err = _append_txn_author_agreement_acceptance_to_request(command_handle, request_json, text, version, taa_digest, mechanism, time, cb);
    ResultHandler::str(command_handle, err, receiver)
}
pub fn append_txn_author_agreement_acceptance_to_request ( request_json : & str , text : Option < & str > , version : Option < & str > , taa_digest : Option < & str > , mechanism : & str , time : u64 ) -> Box < dyn Future < Item = String , Error = IndyError > > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = _append_txn_author_agreement_acceptance_to_request ( command_handle , request_json , text , version , taa_digest , mechanism , time , cb ) ; ResultHandler :: str ( command_handle , err , receiver ) }
Append transaction author agreement acceptance data to a request.
Append transaction author agreement acceptance data to a request .
request_json
&str
text
Option<&str>
version
Option<&str>
taa_digest
Option<&str>
mechanism
&str
time
u64
Updated request result as json.
Updated request result as json .
request_json
&str
text
Option<&str>
version
Option<&str>
taa_digest
Option<&str>
mechanism
&str
time
u64