pub struct RegionalDataPoint {
pub region: String,
pub code: String,
pub value: Option<f64>,
pub series_id: SeriesId,
}Expand description
A single region’s value within a RegionalDataMeta date bucket.
Fields§
§region: StringThe region’s display name, e.g. "Alabama".
code: StringFRED’s region code, e.g. "01" for Alabama. A string because FRED zero-
pads it and uses non-numeric codes for some region types.
value: Option<f64>The value for this region on this date. Unlike core FRED observations
(stringly-typed, "." for missing), GeoFRED sends a JSON number, so a
plain Option<f64> suffices — None for a null or absent value.
series_id: SeriesIdThe underlying FRED series this region’s value comes from, e.g. ALPCPI.
Trait Implementations§
Source§impl Clone for RegionalDataPoint
impl Clone for RegionalDataPoint
Source§fn clone(&self) -> RegionalDataPoint
fn clone(&self) -> RegionalDataPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegionalDataPoint
impl Debug for RegionalDataPoint
Source§impl<'de> Deserialize<'de> for RegionalDataPoint
impl<'de> Deserialize<'de> for RegionalDataPoint
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
Source§impl PartialEq for RegionalDataPoint
impl PartialEq for RegionalDataPoint
Source§fn eq(&self, other: &RegionalDataPoint) -> bool
fn eq(&self, other: &RegionalDataPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RegionalDataPoint
impl Serialize for RegionalDataPoint
impl StructuralPartialEq for RegionalDataPoint
Auto Trait Implementations§
impl Freeze for RegionalDataPoint
impl RefUnwindSafe for RegionalDataPoint
impl Send for RegionalDataPoint
impl Sync for RegionalDataPoint
impl Unpin for RegionalDataPoint
impl UnsafeUnpin for RegionalDataPoint
impl UnwindSafe for RegionalDataPoint
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