pub trait RequestInfo {
const BASE_URL: &'static str;
// Required method
fn client(&self) -> &Client;
}
Expand description
Trait to provide some basic info about API
Required Associated Constants§
Required Methods§
Sourcefn client(&self) -> &Client
fn client(&self) -> &Client
Returns the reqwest::Client instance associated with the API client.
The client is used to send HTTP requests to the API.
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.