pub trait HttpClient:
Send
+ Sync
+ Debug {
// Required method
fn get(&self, url: &str) -> Result<String>;
}Expand description
Trait for simple http get requests. It can be mocked with the static client.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".