pub enum RequestBuilder {
    ErrorInput(String),
    Data {
        api: ApiImport,
        url: String,
        headers: Option<HashMap<String, String>>,
        body: Option<String>,
    },
}
Expand description

Builder for typed requests (more complex version of FetchBuilder).

Unlike in the FetchBuilder, here request and response data is a type implementing SingleRequestTrait or ListRequestTrait.

Variants

ErrorInput(String)

Data

Fields

api: ApiImport
url: String
body: Option<String>

Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.