pub struct IPAddressInfo {Show 26 fields
pub ip: String,
pub latitude: f64,
pub longitude: f64,
pub city: String,
pub version: Option<String>,
pub region: Option<String>,
pub region_code: Option<String>,
pub country: Option<String>,
pub country_name: Option<String>,
pub country_code: Option<String>,
pub country_code_iso3: Option<String>,
pub country_capital: Option<String>,
pub country_tld: Option<String>,
pub continent_code: Option<String>,
pub in_eu: Option<bool>,
pub postal: Option<String>,
pub timezone: Option<String>,
pub utc_offset: Option<String>,
pub country_calling_code: Option<String>,
pub currency: Option<String>,
pub currency_name: Option<String>,
pub languages: Option<String>,
pub country_area: Option<f64>,
pub country_population: Option<f64>,
pub asn: Option<String>,
pub org: Option<String>,
}
Fields§
§ip: String
§latitude: f64
§longitude: f64
§city: String
§version: Option<String>
§region: Option<String>
§region_code: Option<String>
§country: Option<String>
§country_name: Option<String>
§country_code: Option<String>
§country_code_iso3: Option<String>
§country_capital: Option<String>
§country_tld: Option<String>
§continent_code: Option<String>
§in_eu: Option<bool>
§postal: Option<String>
§timezone: Option<String>
§utc_offset: Option<String>
§country_calling_code: Option<String>
§currency: Option<String>
§currency_name: Option<String>
§languages: Option<String>
§country_area: Option<f64>
§country_population: Option<f64>
§asn: Option<String>
§org: Option<String>
Trait Implementations§
Source§impl Clone for IPAddressInfo
impl Clone for IPAddressInfo
Source§fn clone(&self) -> IPAddressInfo
fn clone(&self) -> IPAddressInfo
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 IPAddressInfo
impl Debug for IPAddressInfo
Source§impl Default for IPAddressInfo
impl Default for IPAddressInfo
Source§fn default() -> IPAddressInfo
fn default() -> IPAddressInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IPAddressInfo
impl<'de> Deserialize<'de> for IPAddressInfo
Source§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 Freeze for IPAddressInfo
impl RefUnwindSafe for IPAddressInfo
impl Send for IPAddressInfo
impl Sync for IPAddressInfo
impl Unpin for IPAddressInfo
impl UnwindSafe for IPAddressInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.