Struct popgetter::CensusZone
source · pub struct CensusZone {
pub id: String,
pub cars_0: u16,
pub cars_1: u16,
pub cars_2: u16,
pub cars_3: u16,
}
Fields§
§id: String
§cars_0: u16
§cars_1: u16
§cars_2: u16
§cars_3: u16
Implementations§
source§impl CensusZone
impl CensusZone
pub fn total_cars(&self) -> u16
Trait Implementations§
source§impl Clone for CensusZone
impl Clone for CensusZone
source§fn clone(&self) -> CensusZone
fn clone(&self) -> CensusZone
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 CensusZone
impl Debug for CensusZone
source§impl<'de> Deserialize<'de> for CensusZone
impl<'de> Deserialize<'de> for CensusZone
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 CensusZone
impl RefUnwindSafe for CensusZone
impl Send for CensusZone
impl Sync for CensusZone
impl Unpin for CensusZone
impl UnwindSafe for CensusZone
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