Function libindy_sys::indy_parse_get_schema_response[][src]

pub unsafe extern "C" fn indy_parse_get_schema_response(
    command_handle: indy_handle_t,
    get_schema_response: *const c_char,
    str: indy_str_str_cb
) -> indy_error_t

Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API.

#Params command_handle: command handle to map callback to caller context. get_schema_response: response of GET_SCHEMA request. cb: Callback that takes command result as parameter.

#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 }

#Errors Common*