pub trait Client<P>{
type Response: for<'de> Deserialize<'de> + Serialize + Clone + DebugImpl + PartialEq;
const BASE_URL: &'static str;
// Required method
fn get(&self, params: P) -> Result<Self::Response, Box<dyn Error>>;
}Expand description
Interface behavior for all clients
Required Associated Constants§
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".