pub struct WireMockContainer(/* private fields */);Expand description
A WireMock stub-server container.
Implementations§
Source§impl WireMockContainer
impl WireMockContainer
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds a container from the pinned default image (wiremock/wiremock:3.13.2).
Sourcepub fn with_image(image: &str) -> Self
pub fn with_image(image: &str) -> Self
Builds a container from a caller-chosen image.
Sourcepub async fn start(self) -> Result<WireMockGuard>
pub async fn start(self) -> Result<WireMockGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WireMockContainer
impl !UnwindSafe for WireMockContainer
impl Freeze for WireMockContainer
impl Send for WireMockContainer
impl Sync for WireMockContainer
impl Unpin for WireMockContainer
impl UnsafeUnpin for WireMockContainer
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