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)

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.