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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for IpDetails
impl UnwindSafe for IpDetails
Blanket Implementations
Mutably borrows from an owned value. Read more