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: u32
Port to bind to. Default (or a value of 0) get the OS to open a random port
tls: bool
If 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 Freeze for MockServerConfig
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> 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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§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