Record

Struct Record 

Source
pub struct Record {
    pub zip_code: &'static str,
    pub zip_code_type: Type,
    pub city: &'static str,
    pub state: &'static str,
    pub coordinates: Option<(f64, f64)>,
    pub is_decommissioned: bool,
    pub tax_returns_filed: Option<u64>,
    pub estimated_population: Option<u64>,
    pub total_wages: Option<u64>,
}

Fields§

§zip_code: &'static str

The 5-digit ZIP code.

§zip_code_type: Type

The ZIP code classification.

§city: &'static str

The city to which the ZIP code belongs (all uppercase).

§state: &'static str

The state to which the ZIP code belongs (two letter abbreviation).

§coordinates: Option<(f64, f64)>

Latitude and longitude

§is_decommissioned: bool

If true, the ZIP code is historical; if false, the ZIP code is current.

§tax_returns_filed: Option<u64>

The number of individual tax returns filed as of 2008.

§estimated_population: Option<u64>

The estimated population of the area of the ZIP code.

§total_wages: Option<u64>

Total yearly wages of the population.

Auto Trait Implementations§

§

impl Freeze for Record

§

impl RefUnwindSafe for Record

§

impl Send for Record

§

impl Sync for Record

§

impl Unpin for Record

§

impl UnwindSafe for Record

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.