Crate pact_models[][src]

Expand description

The pact_models crate provides all the structs and traits required to model a Pact.

Modules

bodies

Module for handling interaction content (bodies)

content_types

Module for handling content types

expression_parser

expression parser for generator expressions

json_utils

Collection of utilities for working with JSON

provider_states

provider_states module contains all the logic for dealing with provider states. See https://docs.pact.io/getting_started/provider_states for more info on provider states.

time_utils

Utilities for dealing with time and date values. These are based on the Java DateTimeFormatter

v4

V4 specification models

verify_json

Module for verifying the state of the Pact JSON (file format verification)

Structs

Consumer

Struct that defines the consumer of the pact.

Provider

Struct that defines a provider of a pact.

Enums

DifferenceType

Enumeration of the types of differences between requests and responses

HttpStatus

Enum that defines the different types of HTTP statuses

PactSpecification

Enum defining the pact specification versions supported by the library