/// Builds a NYM request. Request to create a new NYM record for a specific user.
///
/// # 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`)
/// * `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
///                             ENDORSER - equal to TRUST_ANCHOR that will be removed soon
///                             NETWORK_MONITOR
///                             empty string to reset role
///
/// # 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(submitter_did: &str, target_did: &str, verkey: Option<&str>, data: Option<&str>, role: Option<&str>) -> Box<dyn Future<Item=String, Error=IndyError>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
    let err = _build_nym_request(command_handle, submitter_did, target_did, verkey, data, role, cb);
    ResultHandler::str(command_handle, err, receiver)
}
pub fn build_nym_request ( submitter_did : & str , target_did : & str , verkey : Option < & str > , data : Option < & str > , role : Option < & str > ) -> Box < dyn Future < Item = String , Error = IndyError > > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = _build_nym_request ( command_handle , submitter_did , target_did , verkey , data , role , cb ) ; ResultHandler :: str ( command_handle , err , receiver ) }
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>