Function pact_mock_server_ffi::with_pact_metadata [−][src]
#[no_mangle] pub extern "C" fn with_pact_metadata(
pact: PactHandle,
namespace: *const c_char,
name: *const c_char,
value: *const c_char
) -> bool
Expand description
Sets the additional metadata on the Pact file. Common uses are to add the client library details such as the name and version Returns false if the interaction or Pact can’t be modified (i.e. the mock server for it has already started)
pact
- Handle to a Pact modelnamespace
- the top level metadat key to set any key values onname
- the key to setvalue
- the value to set