pub struct RegionalDataMeta {
pub title: String,
pub region: String,
pub seasonality: String,
pub units: String,
pub frequency: String,
pub data: BTreeMap<String, Vec<RegionalDataPoint>>,
}Expand description
The meta payload of a RegionalData response: a descriptive header and
the values, keyed by date.
title, region, seasonality, units, and frequency are FRED display
labels (“state”, “Not Seasonally Adjusted”, “Dollars”, “Annual”), so they
are kept as String rather than parsed into enums — the request side of the
API uses codes, but these come back as free text (ADR-0025).
Fields§
§title: StringFRED’s descriptive title for the result, e.g.
"2025 Per Capita Personal Income by State (Dollars)".
region: StringThe region granularity as a display label, e.g. "state".
seasonality: StringThe seasonality as a display label, e.g. "Not Seasonally Adjusted".
units: StringThe units as a display label, e.g. "Dollars" — echoed from the request’s
free-form units value (ADR-0025).
frequency: StringThe frequency as a display label, e.g. "Annual".
data: BTreeMap<String, Vec<RegionalDataPoint>>The regional values, keyed by observation date (BTreeMap for a
deterministic date order). Each date maps to one RegionalDataPoint
per region.
Trait Implementations§
Source§impl Clone for RegionalDataMeta
impl Clone for RegionalDataMeta
Source§fn clone(&self) -> RegionalDataMeta
fn clone(&self) -> RegionalDataMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegionalDataMeta
impl Debug for RegionalDataMeta
Source§impl<'de> Deserialize<'de> for RegionalDataMeta
impl<'de> Deserialize<'de> for RegionalDataMeta
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>,
Source§impl PartialEq for RegionalDataMeta
impl PartialEq for RegionalDataMeta
Source§fn eq(&self, other: &RegionalDataMeta) -> bool
fn eq(&self, other: &RegionalDataMeta) -> bool
self and other values to be equal, and is used by ==.