pub fn parse_get_schema_response_timeout(get_schema_response: &str, timeout: Duration) -> Result<(String, String), ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string_string();

        let err = Ledger::_parse_get_schema_response(command_handle, get_schema_response, cb);

        ResultHandler::two_timeout(err, receiver, timeout)
    }
/// Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API.
///
/// # Arguments
/// * `get_schema_response` - response of GET_SCHEMA request.
/// * `timeout` - the maximum time this function waits for a response
///
/// # Returns
/// Schema Id and Schema json.
/// {
///     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
/// }
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API.
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API .
pub fn parse_get_schema_response_timeout(get_schema_response: &str, timeout: Duration) -> Result<(String, String), ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string_string();
        let err = Ledger::_parse_get_schema_response(command_handle, get_schema_response, cb);
        ResultHandler::two_timeout(err, receiver, timeout)
    }
pub fn parse_get_schema_response_timeout ( get_schema_response : & str , timeout : Duration ) -> Result < ( String , String ) , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string_string ( ) ; let err = Ledger :: _parse_get_schema_response ( command_handle , get_schema_response , cb ) ; ResultHandler :: two_timeout ( err , receiver , timeout ) }
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API.
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API .
Schema Id and Schema json.
{
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
}
Schema Id and Schema json . { 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 }
get_schema_response
&str
timeout
Duration