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> Freeze for VerificationOptions<F>
impl<F> RefUnwindSafe for VerificationOptions<F>where
F: RefUnwindSafe,
impl<F> Send for VerificationOptions<F>
impl<F> Sync for VerificationOptions<F>
impl<F> Unpin for VerificationOptions<F>
impl<F> UnwindSafe for VerificationOptions<F>where
F: RefUnwindSafe,
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