Struct ipinfo::IpDetails[][src]

pub struct IpDetails {
Show 16 fields pub ip: String, pub hostname: Option<String>, pub city: String, pub region: String, pub country: String, pub loc: String, pub org: Option<String>, pub postal: Option<String>, pub timezone: Option<String>, pub asn: Option<AsnDetails>, pub company: Option<CompanyDetails>, pub carrier: Option<CarrierDetails>, pub privacy: Option<PrivacyDetails>, pub abuse: Option<AbuseDetails>, pub domains: Option<DomainsDetails>, pub extra: HashMap<String, Value>,
}
Expand description

IP address lookup details.

Fields

ip: String

The IP address.

hostname: Option<String>

The reverse DNS lookup hostname of the IP address.

city: String

The city for the IP address.

region: String

The region for the IP address.

country: String

The country for the IP address.

loc: String

The geographical location for the IP address.

org: Option<String>

The organization for the IP address.

postal: Option<String>

The postal code for the IP address.

timezone: Option<String>

The timezone for the IP address.

asn: Option<AsnDetails>

The AS details the IP address is part of.

company: Option<CompanyDetails>

The company details that owns this IP address.

carrier: Option<CarrierDetails>

The carrier details that owns this mobile IP address.

privacy: Option<PrivacyDetails>

The privacy details for the IP address.

abuse: Option<AbuseDetails>

The abuse details for the IP address.

domains: Option<DomainsDetails>

The hosted domains details for the IP address.

extra: HashMap<String, Value>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.