Trait IpApi

Source
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§

Source

fn get_api_key(&self) -> &Option<String>

Gets the optional API key.

§Returns
  • Option<String> - The optional API key.
Source

fn get_rate_limiter(&self) -> &Option<DefaultDirectRateLimiter>

Gets the rate limiter.

§Returns
  • &DefaultDirectRateLimiter - The rate limiter.

Implementors§