pub enum RequestBuilder {
    ErrorInput(String),
    Data {
        driver: Driver,
        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

driver: Driver
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

Performs the conversion.

Performs the conversion.

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.