[][src]Struct oas_gen::xtests::Test

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>,
}

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

impl Clone for Test[src]

impl Debug for Test[src]

impl Default for Test[src]

impl<'de> Deserialize<'de> for Test[src]

impl Serialize for Test[src]

Auto Trait Implementations

impl RefUnwindSafe for Test

impl Send for Test

impl Sync for Test

impl Unpin for Test

impl UnwindSafe for Test

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.