Struct upcake::RequestConfig [−][src]
pub struct RequestConfig {
pub name: Option<String>,
pub requires: Vec<String>,
pub request_method: String,
pub data: Option<RequestData>,
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<RequestData>
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RequestConfig
impl Send for RequestConfig
impl Sync for RequestConfig
impl Unpin for RequestConfig
impl UnwindSafe for RequestConfig
Blanket Implementations
Mutably borrows from an owned value. Read more