Struct oas_gen::xtests::Test [−][src]
pub struct Test { pub description: String, pub auth: bool, pub skip: bool, pub params: Map<String, String>, pub request: Request, pub response: Response, pub required: Vec<String>, }
Expand description
The test in the “x-tests” extension. Implementation is based on 8c84cc6 of https://github.com/davidkpiano/openapi-test
Fields
description: String
The description of the test, used for reporting the test results.
auth: bool
Whether to add the –token JWT to the header and authorize the request (default: false).
skip: bool
If true, this test will be skipped. (default: false).
params: Map<String, String>
(optional) Supplies dynamic parameter values (e.g., “name”: … would supply the value for /{name} in the path). Only needed for tests with URL params.
request: Request
An object that contains: query
response: Response
An object that contains: status
required: Vec<String>
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 Test
impl UnwindSafe for Test
Blanket Implementations
Mutably borrows from an owned value. Read more