pub trait IpApi {
// Required methods
fn get_api_key(&self) -> &Option<String>;
fn get_rate_limiter(&self) -> &Option<DefaultDirectRateLimiter>;
}Expand description
The main client for the ip-api.com API.
Required Methods§
Sourcefn get_api_key(&self) -> &Option<String>
fn get_api_key(&self) -> &Option<String>
Sourcefn get_rate_limiter(&self) -> &Option<DefaultDirectRateLimiter>
fn get_rate_limiter(&self) -> &Option<DefaultDirectRateLimiter>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".