[−][src]Struct pact_consumer::builders::InteractionBuilder
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
impl RefUnwindSafe for InteractionBuilder
[src]
impl Send for InteractionBuilder
[src]
impl Sync for InteractionBuilder
[src]
impl Unpin for InteractionBuilder
[src]
impl UnwindSafe for InteractionBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,