Function pact_ffi::models::message::pactffi_message_new_from_json

source ·
#[no_mangle]
pub extern "C" fn pactffi_message_new_from_json(
    index: c_uint,
    json_str: *const c_char,
    spec_version: PactSpecification
) -> *mut Message
Expand description

Constructs a Message from the JSON string

§Safety

This function is safe.

§Error Handling

If the JSON string is invalid or not UTF-8 encoded, returns a NULL.