Module pact_ffi::models

source ·
Expand description

FFI functions to support Pact models.

Modules§

  • V4 ASynchronous messages
  • FFI wrapper code for pact_matching::models::Consumer
  • Module for functions to deal with request, response and message contents
  • Functions for dealing with matching rule expressions
  • FFI functions to deal with generators and generated values
  • Structs and functions to deal with HTTP Pact interactions
  • FFI functions to support Pact interaction models.
  • FFI wrapper code for iterating over Pact interactions
  • FFI functions to deal with matching rules
  • The Pact Message type, including associated matching rules and provider states.
  • FFI wrapper for MessagePact from pact_matching.
  • C FFI friendly version of pact_matching::models::PactSpecification
  • FFI wrapper code for pact_matching::models::Provider
  • Represents the state of providers in a message.
  • V4 Synchronous request/response messages

Structs§

  • Opaque type for use as a pointer to a Pact model
  • Opaque type for use as a pointer to a Pact interaction model

Functions§

  • Frees the memory used by the Pact interaction model
  • Frees the memory used by the Pact model
  • Returns an iterator over all the interactions in the Pact. The iterator will have to be deleted using the pactffi_pact_interaction_iter_delete function. The iterator will contain a copy of the interactions, so it will not be affected but mutations to the Pact model and will still function if the Pact model is deleted.
  • Returns the Pact specification enum that the Pact is for.
  • Parses the provided JSON into a Pact model. The returned Pact model must be freed with the pactffi_pact_model_delete function when no longer needed.