pub struct Enterprise<'a> {
pub city: City<'a>,
pub continent: Continent<'a>,
pub country: Country<'a>,
pub location: Location<'a>,
pub postal: Postal<'a>,
pub registered_country: Country<'a>,
pub represented_country: RepresentedCountry<'a>,
pub subdivisions: Vec<Subdivision<'a>>,
pub traits: Traits<'a>,
}Expand description
GeoIP2 Enterprise database record.
Contains all City data plus additional confidence scores and traits. Enterprise records include confidence values (0-100) indicating MaxMind’s certainty about the accuracy of each field.
Fields§
§city: City<'a>City data with confidence score.
continent: Continent<'a>Continent data for the IP address.
country: Country<'a>Country data with confidence score.
location: Location<'a>Location data including coordinates and time zone.
postal: Postal<'a>Postal code data with confidence score.
registered_country: Country<'a>Country where the ISP has registered the IP block.
represented_country: RepresentedCountry<'a>Country represented by users of this IP (e.g., military base or embassy).
subdivisions: Vec<Subdivision<'a>>Subdivisions with confidence scores, ordered from largest to smallest.
traits: Traits<'a>Extended traits including ISP, organization, and connection information.
Trait Implementations§
Source§impl<'a> Clone for Enterprise<'a>
impl<'a> Clone for Enterprise<'a>
Source§fn clone(&self) -> Enterprise<'a>
fn clone(&self) -> Enterprise<'a>
Returns a duplicate 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<'a> Debug for Enterprise<'a>
impl<'a> Debug for Enterprise<'a>
Source§impl<'a> Default for Enterprise<'a>
impl<'a> Default for Enterprise<'a>
Source§fn default() -> Enterprise<'a>
fn default() -> Enterprise<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for Enterprise<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Enterprise<'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 Enterprise<'a>
impl<'a> RefUnwindSafe for Enterprise<'a>
impl<'a> Send for Enterprise<'a>
impl<'a> Sync for Enterprise<'a>
impl<'a> Unpin for Enterprise<'a>
impl<'a> UnwindSafe for Enterprise<'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