/// Parse a GET_NYM response to get NYM data.
///
/// # Arguments
/// * `get_nym_response`: response on GET_NYM request.
///
/// # Returns
/// NYM data
/// {
///     did: DID as base58-encoded string for 16 or 32 bit DID value.
///     verkey: verification key as base58-encoded string.
///     role: Role associated number
///                             null (common USER)
///                             0 - TRUSTEE
///                             2 - STEWARD
///                             101 - TRUST_ANCHOR
///                             101 - ENDORSER - equal to TRUST_ANCHOR that will be removed soon
///                             201 - NETWORK_MONITOR
/// }
Parse a GET_NYM response to get NYM data.
Parse a GET_NYM response to get NYM data .
pub fn parse_get_nym_response(get_nym_response: &str) -> Box<dyn Future<Item=String, Error=IndyError>> {
    let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
    let err = _parse_get_nym_response(command_handle, get_nym_response, cb);
    ResultHandler::str(command_handle, err, receiver)
}
pub fn parse_get_nym_response ( get_nym_response : & str ) -> Box < dyn Future < Item = String , Error = IndyError > > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = _parse_get_nym_response ( command_handle , get_nym_response , cb ) ; ResultHandler :: str ( command_handle , err , receiver ) }
Parse a GET_NYM response to get NYM data.
Parse a GET_NYM response to get NYM data .
NYM data
{
did: DID as base58-encoded string for 16 or 32 bit DID value.
verkey: verification key as base58-encoded string.
role: Role associated number
null (common USER)
0 - TRUSTEE
2 - STEWARD
101 - TRUST_ANCHOR
101 - ENDORSER - equal to TRUST_ANCHOR that will be removed soon
201 - NETWORK_MONITOR
}
NYM data { did : DID as base58 - encoded string for 16 or 32 bit DID value . verkey : verification key as base58 - encoded string . role : Role associated number null ( common USER ) 0 - TRUSTEE 2 - STEWARD 101 - TRUST_ANCHOR 101 - ENDORSER - equal to TRUST_ANCHOR that will be removed soon 201 - NETWORK_MONITOR }
get_nym_response
&str