Struct ip2location::LocationRecord
source · pub struct LocationRecord {Show 22 fields
pub ip: IpAddr,
pub latitude: Option<f32>,
pub longitude: Option<f32>,
pub country: Option<Country>,
pub region: Option<String>,
pub city: Option<String>,
pub isp: Option<String>,
pub domain: Option<String>,
pub zip_code: Option<String>,
pub time_zone: Option<String>,
pub net_speed: Option<String>,
pub idd_code: Option<String>,
pub area_code: Option<String>,
pub weather_station_code: Option<String>,
pub weather_station_name: Option<String>,
pub mcc: Option<String>,
pub mnc: Option<String>,
pub mobile_brand: Option<String>,
pub elevation: Option<String>,
pub usage_type: Option<String>,
pub address_type: Option<String>,
pub category: Option<String>,
}Fields§
§ip: IpAddr§latitude: Option<f32>§longitude: Option<f32>§country: Option<Country>§region: Option<String>§city: Option<String>§isp: Option<String>§domain: Option<String>§zip_code: Option<String>§time_zone: Option<String>§net_speed: Option<String>§idd_code: Option<String>§area_code: Option<String>§weather_station_code: Option<String>§weather_station_name: Option<String>§mcc: Option<String>§mnc: Option<String>§mobile_brand: Option<String>§elevation: Option<String>§usage_type: Option<String>§address_type: Option<String>§category: Option<String>Implementations§
Trait Implementations§
source§impl Clone for LocationRecord
impl Clone for LocationRecord
source§fn clone(&self) -> LocationRecord
fn clone(&self) -> LocationRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LocationRecord
impl Debug for LocationRecord
source§impl Default for LocationRecord
impl Default for LocationRecord
source§impl PartialEq<LocationRecord> for LocationRecord
impl PartialEq<LocationRecord> for LocationRecord
source§fn eq(&self, other: &LocationRecord) -> bool
fn eq(&self, other: &LocationRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.