pub fn build_attrib_request_timeout(submitter_did: &str, target_did: &str, hash: Option<&str>, raw: Option<&str>, enc: Option<&str>, timeout: Duration) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

        let err = Ledger::_build_attrib_request(command_handle, submitter_did, target_did, hash, raw, enc, cb);

        ResultHandler::one_timeout(err, receiver, timeout)
    }
/// Builds an ATTRIB request. Request to add attribute to a NYM record.
///
/// # 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.
/// * `hash` - (Optional) Hash of attribute data.
/// * `raw` - (Optional) Json, where key is attribute name and value is attribute value.
/// * `enc` - (Optional) Encrypted value attribute data.
/// * `timeout` - the maximum time this function waits for a response
///
/// # Returns
/// Request result as json.
Builds an ATTRIB request. Request to add attribute to a NYM record.
Builds an ATTRIB request . Request to add attribute to a NYM record .
pub fn build_attrib_request_timeout(submitter_did: &str, target_did: &str, hash: Option<&str>, raw: Option<&str>, enc: Option<&str>, timeout: Duration) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
        let err = Ledger::_build_attrib_request(command_handle, submitter_did, target_did, hash, raw, enc, cb);
        ResultHandler::one_timeout(err, receiver, timeout)
    }
pub fn build_attrib_request_timeout ( submitter_did : & str , target_did : & str , hash : Option < & str > , raw : Option < & str > , enc : Option < & str > , timeout : Duration ) -> Result < String , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = Ledger :: _build_attrib_request ( command_handle , submitter_did , target_did , hash , raw , enc , cb ) ; ResultHandler :: one_timeout ( err , receiver , timeout ) }
Builds an ATTRIB request.
Builds an ATTRIB request .
Request result as json.
Request result as json .
submitter_did
&str
target_did
&str
hash
Option<&str>
raw
Option<&str>
enc
Option<&str>
timeout
Duration