[][src]Struct pact_consumer::builders::InteractionBuilder

pub struct InteractionBuilder {
    pub request: RequestBuilder,
    pub response: ResponseBuilder,
    // some fields omitted
}

Builder for Interaction objects. Normally created via PactBuilder::interaction.

Fields

request: RequestBuilder

A builder for this interaction's Request.

response: ResponseBuilder

A builder for this interaction's Response.

Implementations

impl InteractionBuilder[src]

pub fn new<D: Into<String>>(description: D) -> Self[src]

Create a new interaction.

pub fn given<G: Into<String>>(&mut self, given: G) -> &mut Self[src]

Specify a "provider state" for this interaction. This is normally use to set up database fixtures when using a pact to test a provider.

pub fn build(&self) -> RequestResponseInteraction[src]

The interaction we've built.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,