Trait pact_consumer::mock_server::StartMockServer

source ·
pub trait StartMockServer {
    // Required method
    fn start_mock_server(
        &self,
        catalog_entry: Option<&str>,
    ) -> Box<dyn ValidatingMockServer>;
}
Expand description

This trait is implemented by types which allow us to start a mock server.

Required Methods§

source

fn start_mock_server( &self, catalog_entry: Option<&str>, ) -> Box<dyn ValidatingMockServer>

Start a mock server running in a background thread. If the catalog entry is omitted, then a standard HTTP mock server will be started.

Implementations on Foreign Types§

source§

impl StartMockServer for RequestResponsePact

source§

fn start_mock_server( &self, _catalog_entry: Option<&str>, ) -> Box<dyn ValidatingMockServer>

Implementors§