pub fn build_schema_request(submitter_did: &str, data: &str) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

        let err = Ledger::_build_schema_request(command_handle, submitter_did, data, cb);

        ResultHandler::one(err, receiver)
    }
/// Builds a SCHEMA request. Request to add Credential's schema.
///
/// # Arguments
/// * `submitter_did` - DID of the submitter stored in secured Wallet.
/// * `data` - Credential schema.
/// {
///     id: identifier of schema
///     attrNames: array of attribute name strings
///     name: Schema's name string
///     version: Schema's version string,
///     ver: Version of the Schema json
/// }
///
/// # Returns
/// Request result as json.
Builds a SCHEMA request. Request to add Credential's schema.
Builds a SCHEMA request . Request to add Credential ' s schema .
pub fn build_schema_request(submitter_did: &str, data: &str) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
        let err = Ledger::_build_schema_request(command_handle, submitter_did, data, cb);
        ResultHandler::one(err, receiver)
    }
pub fn build_schema_request ( submitter_did : & str , data : & str ) -> Result < String , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = Ledger :: _build_schema_request ( command_handle , submitter_did , data , cb ) ; ResultHandler :: one ( err , receiver ) }
Builds a SCHEMA request.
Builds a SCHEMA request .
Request result as json.
Request result as json .
submitter_did
&str
data
&str