Function pact_ffi::models::expressions::pactffi_matcher_definition_value

source ยท
#[no_mangle]
pub extern "C" fn pactffi_matcher_definition_value(
    definition: *const MatchingRuleDefinitionResult
) -> *const c_char
Expand description

Returns the value from parsing a matching definition expression. If there was an error, it will return a NULL pointer, otherwise returns the value as a NULL-terminated string. The returned string must be freed using the pactffi_string_delete function once done with it.

Note that different expressions values can have types other than a string. Use pactffi_matcher_definition_value_type to get the actual type of the value. This function will always return the string representation of the value.