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
sourceimpl Clone for MockServerConfig
impl Clone for MockServerConfig
sourcefn clone(&self) -> MockServerConfig
fn clone(&self) -> MockServerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MockServerConfig
impl Debug for MockServerConfig
sourceimpl Default for MockServerConfig
impl Default for MockServerConfig
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more