pub struct Country<'a> {
pub continent: Continent<'a>,
pub country: Country<'a>,
pub registered_country: Country<'a>,
pub represented_country: RepresentedCountry<'a>,
pub traits: Traits,
}Expand description
GeoIP2/GeoLite2 Country database record.
Contains country-level geolocation data for an IP address. This is the simplest geolocation record type, suitable when you only need country information.
Fields§
§continent: Continent<'a>Continent data for the IP address.
country: Country<'a>Country where MaxMind believes the IP is located.
registered_country: Country<'a>Country where the ISP has registered the IP block.
May differ from country (e.g., for mobile networks or VPNs).
represented_country: RepresentedCountry<'a>Country represented by users of this IP (e.g., military base or embassy).
traits: TraitsVarious traits associated with the IP address.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Country<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Country<'a>
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<'a> Freeze for Country<'a>
impl<'a> RefUnwindSafe for Country<'a>
impl<'a> Send for Country<'a>
impl<'a> Sync for Country<'a>
impl<'a> Unpin for Country<'a>
impl<'a> UnwindSafe for Country<'a>
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