Enum pact_verifier::PactSource[][src]

pub enum PactSource {
    Unknown,
    File(String),
    Dir(String),
    URL(StringOption<HttpAuth>),
    BrokerUrl(StringStringOption<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

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

Tuple Fields of URL

0: String1: Option<HttpAuth>
BrokerUrl(StringStringOption<HttpAuth>, Vec<Link>)

Load all pacts with the provider name from the pact broker url

Tuple Fields of BrokerUrl

0: String1: String2: Option<HttpAuth>3: Vec<Link>
BrokerWithDynamicConfiguration

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: Vec<String>

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.