pub fn build_attrib_request_async<F: 'static>(submitter_did: &str, target_did: &str, hash: Option<&str>, raw: Option<&str>, enc: Option<&str>, closure: F) -> ErrorCode where F: FnMut(ErrorCode, String) + Send {
        let (command_handle, cb) = ClosureHandler::convert_cb_ec_string(Box::new(closure));

        Ledger::_build_attrib_request(command_handle, submitter_did, target_did, hash, raw, enc, cb)
    }
/// 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.
/// * `closure` - the closure that is called when finished
///
/// # Returns
/// * `errorcode` - errorcode from calling ffi function. The closure receives the return result
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_async<F: 'static>(submitter_did: &str, target_did: &str, hash: Option<&str>, raw: Option<&str>, enc: Option<&str>, closure: F) -> ErrorCode where F: FnMut(ErrorCode, String) + Send {
        let (command_handle, cb) = ClosureHandler::convert_cb_ec_string(Box::new(closure));
        Ledger::_build_attrib_request(command_handle, submitter_did, target_did, hash, raw, enc, cb)
    }
pub fn build_attrib_request_async < F : ' static > ( submitter_did : & str , target_did : & str , hash : Option < & str > , raw : Option < & str > , enc : Option < & str > , closure : F ) -> ErrorCode where F : FnMut ( ErrorCode , String ) + Send { let ( command_handle , cb ) = ClosureHandler :: convert_cb_ec_string ( Box :: new ( closure ) ) ; Ledger :: _build_attrib_request ( command_handle , submitter_did , target_did , hash , raw , enc , cb ) }
Builds an ATTRIB request.
Builds an ATTRIB request .
`errorcode` - errorcode from calling ffi function. The closure receives the return result
` errorcode ` - errorcode from calling ffi function . The closure receives the return result
submitter_did
&str
target_did
&str
hash
Option<&str>
raw
Option<&str>
enc
Option<&str>
closure
F