pub fn build_nym_request_timeout(submitter_did: &str, target_did: &str, verkey: Option<&str>, data: Option<&str>, role: Option<&str>, timeout: Duration) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

        let err = Ledger::_build_nym_request(command_handle, submitter_did, target_did, verkey, data, role, cb);

        ResultHandler::one_timeout(err, receiver, timeout)
    }
/// Builds a NYM request. Request to create a new NYM record for a specific user.
///
/// # Arguments
/// * `submitter_did` - DID of the submitter stored in secured Wallet.
/// * `target_did` - Target DID as base58-encoded string for 16 or 32 bit DID value.
/// * `verkey` - Target identity verification key as base58-encoded string.
/// * `data`
/// * `role` - Role of a user NYM record:
///                             null (common USER)
///                             TRUSTEE
///                             STEWARD
///                             TRUST_ANCHOR
///                             empty string to reset role
/// * `timeout` - the maximum time this function waits for a response
///
/// # Returns
/// Request result as json.
Builds a NYM request. Request to create a new NYM record for a specific user.
Builds a NYM request . Request to create a new NYM record for a specific user .
pub fn build_nym_request_timeout(submitter_did: &str, target_did: &str, verkey: Option<&str>, data: Option<&str>, role: Option<&str>, timeout: Duration) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
        let err = Ledger::_build_nym_request(command_handle, submitter_did, target_did, verkey, data, role, cb);
        ResultHandler::one_timeout(err, receiver, timeout)
    }
pub fn build_nym_request_timeout ( submitter_did : & str , target_did : & str , verkey : Option < & str > , data : Option < & str > , role : Option < & str > , timeout : Duration ) -> Result < String , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = Ledger :: _build_nym_request ( command_handle , submitter_did , target_did , verkey , data , role , cb ) ; ResultHandler :: one_timeout ( err , receiver , timeout ) }
Builds a NYM request.
Builds a NYM request .
Request result as json.
Request result as json .
submitter_did
&str
target_did
&str
verkey
Option<&str>
data
Option<&str>
role
Option<&str>
timeout
Duration