Struct ipinfo::IpInfoConfig [−][src]
pub struct IpInfoConfig {
pub token: Option<String>,
pub timeout: Duration,
pub cache_size: usize,
}
Expand description
IpInfo structure configuration.
Fields
token: Option<String>
IPinfo access token.
timeout: Duration
The timeout of HTTP requests. (default: 3 seconds)
cache_size: usize
The size of the LRU cache. (default: 100 IPs)