Struct pact_verifier::VerificationOptions
source · pub struct VerificationOptions<F>where
F: RequestFilterExecutor,{
pub request_filter: Option<Arc<F>>,
pub disable_ssl_verification: bool,
pub request_timeout: u64,
pub custom_headers: HashMap<String, String>,
pub coloured_output: bool,
pub no_pacts_is_error: bool,
}
Expand description
Options to use when running the verification
Fields§
§request_filter: Option<Arc<F>>
Request filter callback
disable_ssl_verification: bool
Ignore invalid/self-signed SSL certificates
request_timeout: u64
Timeout in ms for verification requests and state callbacks
custom_headers: HashMap<String, String>
Custom headers to be added to the requests to the provider
coloured_output: bool
If coloured output should be used (using ANSI escape codes)
no_pacts_is_error: bool
If no pacts are found to verify, then this should be an error
Trait Implementations§
source§impl<F> Clone for VerificationOptions<F>where
F: RequestFilterExecutor + Clone,
impl<F> Clone for VerificationOptions<F>where F: RequestFilterExecutor + Clone,
source§fn clone(&self) -> VerificationOptions<F>
fn clone(&self) -> VerificationOptions<F>
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<F> Debug for VerificationOptions<F>where
F: RequestFilterExecutor + Debug,
impl<F> Debug for VerificationOptions<F>where F: RequestFilterExecutor + Debug,
source§impl<F: RequestFilterExecutor> Default for VerificationOptions<F>
impl<F: RequestFilterExecutor> Default for VerificationOptions<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for VerificationOptions<F>where F: RefUnwindSafe,
impl<F> Send for VerificationOptions<F>where F: Send + Sync,
impl<F> Sync for VerificationOptions<F>where F: Send + Sync,
impl<F> Unpin for VerificationOptions<F>
impl<F> UnwindSafe for VerificationOptions<F>where F: RefUnwindSafe,
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