pub trait Queryable:
Endpoint
+ Clone
+ 'static {
type Return: DeserializeOwned + Send + Sync + Clone + 'static;
// Provided method
fn query(
base_url: &str,
request_executor: &Client,
language: Language,
) -> impl Future<Output = Result<Self::Return, Error>> + Send { ... }
}Expand description
Marks a struct as Queryable.
Comes with a default implementation that works universally.
Required Associated Types§
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.