pub struct ExpectationBuilder { /* private fields */ }Expand description
Define expectations using a builder pattern.
Implementations§
Source§impl ExpectationBuilder
impl ExpectationBuilder
Sourcepub fn times(self, cardinality: Times) -> ExpectationBuilder
pub fn times(self, cardinality: Times) -> ExpectationBuilder
How many requests should this expectation receive.
Sourcepub fn respond_with(self, responder: impl Responder + 'static) -> Expectation
pub fn respond_with(self, responder: impl Responder + 'static) -> Expectation
What should this expectation respond with.
Auto Trait Implementations§
impl Freeze for ExpectationBuilder
impl !RefUnwindSafe for ExpectationBuilder
impl Send for ExpectationBuilder
impl !Sync for ExpectationBuilder
impl Unpin for ExpectationBuilder
impl !UnwindSafe for ExpectationBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more