pub trait Request: Sized {
type Serializer: SerializeBody<Self>;
type Response;
// Required methods
fn method(&self) -> HttpMethod;
fn path(&self) -> String;
}Required Associated Types§
Sourcetype Serializer: SerializeBody<Self>
type Serializer: SerializeBody<Self>
Specify a pre-defined approach to serialize a request body. For example:
- SerdeJson
- NoBody
Required Methods§
Sourcefn method(&self) -> HttpMethod
fn method(&self) -> HttpMethod
HTTP method that the request will be sent with
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".