pub struct DensityIncome {
pub average_income: Option<u32>,
pub population_density: Option<u32>,
}Expand description
GeoIP2 DensityIncome database record.
Contains population density and income data for an IP address location.
Fields§
§average_income: Option<u32>The average income in US dollars associated with the IP address.
population_density: Option<u32>The estimated number of people per square kilometer.
Trait Implementations§
Source§impl Clone for DensityIncome
impl Clone for DensityIncome
Source§fn clone(&self) -> DensityIncome
fn clone(&self) -> DensityIncome
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 Debug for DensityIncome
impl Debug for DensityIncome
Source§impl<'de> Deserialize<'de> for DensityIncome
impl<'de> Deserialize<'de> for DensityIncome
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 DensityIncome
impl RefUnwindSafe for DensityIncome
impl Send for DensityIncome
impl Sync for DensityIncome
impl Unpin for DensityIncome
impl UnwindSafe for DensityIncome
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