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>,
        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(StringOption<HttpAuth>)

Tuple Fields

0: String

Load the pact from a URL

BrokerUrl(StringStringOption<HttpAuth>, Vec<Link>)

Tuple Fields

0: String
1: String
3: 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: Vec<String>

Provider tags to use in determining pending status for return pacts

provider_branch: Option<String>

Provider branch to use when publishing verification results

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

Load pacts with the newer pacts for verification API

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

Give this value the specified foreground colour

Give this value the specified background colour

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.

Wrap the input message T in a tonic::Request

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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)

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.

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