Function pact_ffi::models::generators::pactffi_generator_generate_string
source ยท #[no_mangle]
pub extern "C" fn pactffi_generator_generate_string(
generator: *const Generator,
context_json: *const c_char
) -> *const c_char
Expand description
Generate a string value using the provided generator and an optional JSON payload containing
any generator context. The context value is used for generators like MockServerURL
(which
should contain details about the running mock server) and ProviderStateGenerator
(which
should be the values returned from the Provider State callback function).
If anything goes wrong, it will return a NULL pointer.