Struct pact_matching::models::Interaction[][src]

pub struct Interaction {
    pub description: String,
    pub provider_states: Vec<ProviderState>,
    pub request: Request,
    pub response: Response,
}

Struct that defines an interaction (request and response pair)

Fields

Description of this interaction. This needs to be unique in the pact file.

Optional provider states for the interaction. See http://docs.pact.io/documentation/provider_states.html for more info on provider states.

Request of the interaction

Response of the interaction

Methods

impl Interaction
[src]

Constructs an Interaction from the Value struct.

Converts this interaction to a Value struct.

Important traits for Vec<u8>

Returns list of conflicts if this interaction conflicts with the other interaction.

Two interactions conflict if they have the same description and provider state, but they request and responses are not equal

Creates a default interaction

Trait Implementations

impl Debug for Interaction
[src]

Formats the value using the given formatter. Read more

impl Clone for Interaction
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Interaction
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Interaction
[src]

impl Hash for Interaction
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Interaction

impl Sync for Interaction