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>,
selectors: Vec<ConsumerVersionSelector>,
auth: Option<HttpAuth>,
links: Vec<Link>,
},
}
Expand description
Source for loading pacts
Variants
Unknown pact source
File(String)
Load the pact from a pact file
Tuple Fields of File
0: String
Dir(String)
Load all the pacts from a Directory
Tuple Fields of Dir
0: String
Load the pact from a URL
Load all pacts with the provider name from the pact broker url
Load pacts with the newer pacts for verification API
Fields of BrokerWithDynamicConfiguration
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
auth: Option<HttpAuth>
HTTP authentication details for accessing the Pact Broker
links: Vec<Link>
Links to the specific Pact resources. Internal field
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more