#[no_mangle]
pub extern "C" fn pactffi_matching_rule_value(
    rule_result: *const MatchingRuleResult
) -> *const c_char
Expand description

Returns the associated value for the matching rule. If the matching rule does not have an associated value, will return a NULL pointer.

The associated values for the rules are: | Rule | ID | VALUE | | –– | – | —– | | Equality | 1 | NULL | | Regex | 2 | Regex value | | Type | 3 | NULL | | MinType | 4 | Minimum value | | MaxType | 5 | Maximum value | | MinMaxType | 6 | “min:max” | | Timestamp | 7 | Format string | | Time | 8 | Format string | | Date | 9 | Format string | | Include | 10 | String value | | Number | 11 | NULL | | Integer | 12 | NULL | | Decimal | 13 | NULL | | Null | 14 | NULL | | ContentType | 15 | Content type | | ArrayContains | 16 | NULL | | Values | 17 | NULL | | Boolean | 18 | NULL | | StatusCode | 19 | NULL | | NotEmpty | 20 | NULL | | Semver | 21 | NULL | | EachKey | 22 | NULL | | EachValue | 23 | NULL |

Will return a NULL pointer if the matching rule was a reference or does not have an associated value.

§Safety

This function is safe as long as the MatchingRuleResult pointer is a valid pointer and the iterator it came from has not been deleted.