pub trait StatsAPIUrl: ToString {
type Response: DeserializeOwned;
// Provided method
fn get(&self) -> impl Future<Output = Result<Self::Response>>
where Self: Sized { ... }
}pub trait StatsAPIUrl: ToString {
type Response: DeserializeOwned;
// Provided method
fn get(&self) -> impl Future<Output = Result<Self::Response>>
where Self: Sized { ... }
}