pub struct SeriesGroup {
pub title: String,
pub id: SeriesGroupId,
pub region_type: String,
pub season: String,
pub units: String,
pub frequency: String,
pub min_date: NaiveDate,
pub max_date: NaiveDate,
}Expand description
Metadata for a GeoFRED / Maps series group (the geofred/series/group
endpoint) — the descriptive header for a group of regional series, and the
span of dates it covers.
region_type, season, units, and frequency are kept as String: FRED
returns them as display/code text here, and this crate mirrors the wire
rather than parsing them into enums (ADR-0025).
Fields§
§title: StringThe group’s descriptive title, e.g. "All Employees: Total Private".
id: SeriesGroupIdThe group’s identifier (FRED’s own series_group field), e.g. 1223.
region_type: StringThe region granularity as a display label, e.g. "state".
season: StringThe seasonality, as FRED reports it here (a short code, e.g. "NSA").
units: StringThe units as a display label, e.g. "Thousands of Persons".
frequency: StringThe frequency as a display label, e.g. "Monthly".
min_date: NaiveDateThe earliest date the group has data for.
max_date: NaiveDateThe latest date the group has data for.
Trait Implementations§
Source§impl Clone for SeriesGroup
impl Clone for SeriesGroup
Source§fn clone(&self) -> SeriesGroup
fn clone(&self) -> SeriesGroup
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 SeriesGroup
impl Debug for SeriesGroup
Source§impl<'de> Deserialize<'de> for SeriesGroup
impl<'de> Deserialize<'de> for SeriesGroup
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 SeriesGroup
impl PartialEq for SeriesGroup
Source§fn eq(&self, other: &SeriesGroup) -> bool
fn eq(&self, other: &SeriesGroup) -> bool
self and other values to be equal, and is used by ==.