pub trait GetRequest: Sized {
type Response: Decodable;
type Query: ToQuery;
// Required methods
fn path(&self) -> Cow<'_, str>;
fn query(&self) -> Self::Query;
// Provided method
fn request(self) -> Get<Self> { ... }
}
Expand description
GET Request
method.
The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.