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

        Ledger::_build_cred_def_request(command_handle, submitter_did, data, cb)
    }
/// Builds an CRED_DEF request. Request to add a Credential Definition (in particular, public key),
/// that Issuer creates for a particular Credential Schema.
///
/// # Arguments
/// * `submitter_did` - DID of the submitter stored in secured Wallet.
/// * `data` - credential definition json
/// {
///     id: string - identifier of credential definition
///     schemaId: string - identifier of stored in ledger schema
///     type: string - type of the credential definition. CL is the only supported type now.
///     tag: string - allows to distinct between credential definitions for the same issuer and schema
///     value: Dictionary with Credential Definition's data: {
///         primary: primary credential public key,
///         Optional<revocation>: revocation credential public key
///     },
///     ver: Version of the CredDef json
/// }
/// * `closure` - the closure that is called when finished
///
/// # Returns
/// * `errorcode` - errorcode from calling ffi function. The closure receives the return result
Builds an CRED_DEF request. Request to add a Credential Definition (in particular, public key),
that Issuer creates for a particular Credential Schema.
Builds an CRED_DEF request . Request to add a Credential Definition ( in particular public key ) that Issuer creates for a particular Credential Schema .
pub fn build_cred_def_request_async<F: 'static>(submitter_did: &str, data: &str, closure: F) -> ErrorCode where F: FnMut(ErrorCode, String) + Send {
        let (command_handle, cb) = ClosureHandler::convert_cb_ec_string(Box::new(closure));
        Ledger::_build_cred_def_request(command_handle, submitter_did, data, cb)
    }
pub fn build_cred_def_request_async < F : ' static > ( submitter_did : & str , data : & str , closure : F ) -> ErrorCode where F : FnMut ( ErrorCode , String ) + Send { let ( command_handle , cb ) = ClosureHandler :: convert_cb_ec_string ( Box :: new ( closure ) ) ; Ledger :: _build_cred_def_request ( command_handle , submitter_did , data , cb ) }
Builds an CRED_DEF request.
Builds an CRED_DEF 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
data
&str
closure
F