Struct upcake::RequestConfig[][src]

pub struct RequestConfig {
    pub name: Option<String>,
    pub requires: Vec<String>,
    pub request_method: String,
    pub data: Option<String>,
    pub headers: Option<HeaderValue>,
    pub url: String,
    pub assertions: Vec<AssertionConfig>,
}
Expand description

Configuration for individual requests

Fields

name: Option<String>

Name of the request

requires: Vec<String>

List of request names which this request requires before it can run

request_method: String

Specify the request command to use, i.e. “GET”

data: Option<String>

Data to pass with the request

Send the contents of a file by prefixing with an @: "@/path/to/file.json"

Contents are rendered with handlebars.

headers: Option<HeaderValue>

Headers to pass to the request

url: String

The url to request

The url string is rendered with handlebars.

assertions: Vec<AssertionConfig>

A list of assertions to perform on the response

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

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. 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.

Performs the conversion.

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)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.