pub struct IpApiConfig { /* private fields */ }
Expand description

Configuration structure allows you to customize the requested fields in the request to save traffic

Implementations

Making a request to ip-api.com API

target can be “ip”/“domain”/“empty string (if you want to request your ip)”

Making a batch request to ip-api.com API

target can be “IPv4”/“IPv6”

Include continent in request

Include continent_code in request

Include country in request

Include country_code in request

Include region in request

Include region_name in request

Include city in request

Include district in request

Include zip in request

Include lat in request

Include lon in request

Include timezone in request

Include offset in request

Include currency in request

Include isp in request

Include org in request

Include as_field in request

Include asname in request

Include reverse in request

Include mobile in request

Include proxy in request

Include hosting in request

Include query in request

Exclude continent from request

Exclude continent_code from request

Exclude country from request

Exclude country_code from request

Exclude region from request

Exclude region_name from request

Exclude city from request

Exclude district from request

Exclude zip from request

Exclude lat from request

Exclude lon from request

Exclude timezone from request

Exclude offset from request

Exclude currency from request

Exclude isp from request

Exclude org from request

Exclude as_field from request

Exclude asname from request

Exclude reverse from request

Exclude mobile from request

Exclude proxy from request

Exclude hosting from request

Exclude query from request

Set custom language for IpData

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more