Function pact_matching_ffi::models::message::message_insert_metadata [−][src]
#[no_mangle] pub extern "C" fn message_insert_metadata(
message: *mut Message,
key: *const c_char,
value: *const c_char
) -> c_int
Expand description
Insert the (key
, value
) pair into this Message’s
metadata
HashMap.
Safety
This function returns an enum indicating the result; see the comments on HashMapInsertStatus for details.
Error Handling
This function may fail if the provided key
or value
strings
contain invalid UTF-8.