pub trait Request: Sized + Clone {
type Builder: Default;
type Response;
const REQUEST_TYPE: &'static str;
// Required methods
fn url(&self) -> &String;
fn into_url(self) -> String;
// Provided method
fn builder() -> Self::Builder { ... }
}Required Associated Constants§
const REQUEST_TYPE: &'static str
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.