pub struct ReleaseTableElement {
pub element_id: ReleaseElementId,
pub release_id: ReleaseId,
pub parent_id: Option<ReleaseElementId>,
pub series_id: Option<SeriesId>,
pub element_type: String,
pub name: String,
pub line: Option<String>,
pub level: String,
pub observation_value: Option<f64>,
pub observation_date: Option<String>,
pub children: Vec<ReleaseTableElement>,
}Expand description
A node in a release’s table tree: a section, a table, or a series row. Nodes
nest via children to arbitrary depth.
Fields§
§element_id: ReleaseElementIdThis element’s id.
release_id: ReleaseIdThe release this element belongs to.
parent_id: Option<ReleaseElementId>The parent element’s id, absent for a root.
series_id: Option<SeriesId>The series this element points to, for a series-type row. Absent for
structural elements (sections/tables), where FRED sends null or "".
element_type: StringThe element kind, e.g. "section", "table", or "series". Kept as a
string (its vocabulary is open-ended and thinly documented; ADR-0017).
name: StringHuman-readable label, e.g. "CPI for U.S. City Average".
line: Option<String>The element’s line number within its table, when FRED provides one.
level: StringThe element’s depth as FRED reports it ("0" at the top). Mirrors the
nesting of children.
observation_value: Option<f64>The element’s observation value at the request’s observation_date (or
FRED’s latest), present only when the request set
include_observation_values.
None for a structural (non-series) element, when values weren’t
requested, or when FRED reports the value as missing (".") — mirroring
Observation’s value handling.
observation_date: Option<String>FRED’s formatted label for the observation_value
date, e.g. "Jun 2023" or "2023" — a human-readable display string
keyed to the series’ frequency, not an ISO YYYY-MM-DD date (unlike
every date input, including the request’s observation_date). It is
therefore not round-trippable: it cannot be parsed deterministically
or fed back into any date parameter. None when values weren’t requested
or the element carries no series.
children: Vec<ReleaseTableElement>The child elements nested beneath this one (empty for a leaf).
Trait Implementations§
Source§impl Clone for ReleaseTableElement
impl Clone for ReleaseTableElement
Source§fn clone(&self) -> ReleaseTableElement
fn clone(&self) -> ReleaseTableElement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more