[][src]Struct pact_verifier::ProviderInfo

pub struct ProviderInfo {
    pub name: String,
    pub protocol: String,
    pub host: String,
    pub port: u16,
    pub path: String,
    pub state_change_url: Option<String>,
    pub state_change_teardown: bool,
    pub state_change_body: bool,
}

Information about the Provider to verify

Fields

name: String

Provider Name

protocol: String

Provider protocol, defaults to HTTP

host: String

Hostname of the provider

port: u16

Port the provider is running on, defaults to 8080

path: String

Base path for the provider, defaults to /

state_change_url: Option<String>

URL to post state change requests to

state_change_teardown: bool

If teardown state change requests should be made (default is false)

state_change_body: bool

If state change request data should be sent in the body (true) or as query parameters (false)

Methods

impl ProviderInfo[src]

pub fn default() -> ProviderInfo[src]

Create a default provider info

Trait Implementations

impl Clone for ProviderInfo[src]

impl Debug for ProviderInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err