Enum pact_verifier::PactSource [−][src]
pub enum PactSource {
Unknown,
File(String),
Dir(String),
URL(String, Option<HttpAuth>),
BrokerUrl(String, String, Option<HttpAuth>, Vec<Link>),
BrokerWithDynamicConfiguration {
provider_name: String,
broker_url: String,
enable_pending: bool,
include_wip_pacts_since: Option<String>,
provider_tags: Vec<String>,
provider_branch: Option<String>,
selectors: Vec<ConsumerVersionSelector>,
auth: Option<HttpAuth>,
links: Vec<Link>,
},
}
Expand description
Source for loading pacts
Variants
Unknown
Unknown pact source
File(String)
Tuple Fields
0: String
Load the pact from a pact file
Dir(String)
Tuple Fields
0: String
Load all the pacts from a Directory
URL(String, Option<HttpAuth>)
Load the pact from a URL
BrokerUrl(String, String, Option<HttpAuth>, Vec<Link>)
Load all pacts with the provider name from the pact broker url
BrokerWithDynamicConfiguration
Fields
provider_name: String
Name of the provider as named in the Pact Broker
broker_url: String
Base URL of the Pact Broker from which to retrieve the pacts
enable_pending: bool
Allow pacts which are in pending state to be verified without causing the overall task to fail. For more information, see https://pact.io/pending
include_wip_pacts_since: Option<String>
Allow pacts that don’t match given consumer selectors (or tags) to be verified, without causing the overall task to fail. For more information, see https://pact.io/wip
Provider tags to use in determining pending status for return pacts
selectors: Vec<ConsumerVersionSelector>
The set of selectors that identifies which pacts to verify
Load pacts with the newer pacts for verification API
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PactSource
impl Send for PactSource
impl Sync for PactSource
impl Unpin for PactSource
impl UnwindSafe for PactSource
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Fmt for T where
T: Display,
impl<T> Fmt for T where
T: Display,
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more