Struct pact_plugin_driver::mock_server::MockServerConfig
source · pub struct MockServerConfig {
pub output_path: Option<PathBuf>,
pub host_interface: Option<String>,
pub port: u32,
pub tls: bool,
}Expand description
Mock server configuration
Fields§
§output_path: Option<PathBuf>Output path to generate Pact files to. Defaults to the current working directory.
host_interface: Option<String>Host interface to use to bind to. Defaults to the loopback adapter.
port: u32Port to bind to. Default (or a value of 0) get the OS to open a random port
tls: boolIf TLS should be used (if supported by the mock server)
Trait Implementations§
source§impl Clone for MockServerConfig
impl Clone for MockServerConfig
source§fn clone(&self) -> MockServerConfig
fn clone(&self) -> MockServerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MockServerConfig
impl Debug for MockServerConfig
source§impl Default for MockServerConfig
impl Default for MockServerConfig
source§fn default() -> MockServerConfig
fn default() -> MockServerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MockServerConfig
impl Send for MockServerConfig
impl Sync for MockServerConfig
impl Unpin for MockServerConfig
impl UnwindSafe for MockServerConfig
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request