pub trait RequestURL: ToString {
type Response: DeserializeOwned;
// Provided method
fn get(&self) -> impl Future<Output = Result<Self::Response>>
where Self: Sized { ... }
}Expand description
A type in which you can request the response from its URL
Required Associated Types§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".