Function pact_ffi::mock_server::handles::pactffi_set_key
source · #[no_mangle]
pub extern "C" fn pactffi_set_key(
interaction: InteractionHandle,
value: *const c_char
) -> bool
Expand description
Sets the key attribute for the interaction.
interaction
- Interaction handle to modify.value
- Key value. This must be a valid UTF-8 null-terminated string, or NULL to clear the key.
This function will return true
if the key was successfully updated.
§Safety
The key parameter must be a valid pointer to a NULL terminated UTF-8, or NULL if the key is to be cleared.