pub struct ReleaseTable {
pub name: Option<String>,
pub element_id: Option<ReleaseElementId>,
pub roots: Vec<ReleaseTableElement>,
}Expand description
A release’s table tree, from the fred/release/tables endpoint — the layout
a release uses to present its series (sections and tables, with series rows
nested beneath them).
FRED returns the top-level elements as a JSON object keyed by element id
whose values are the roots of the tree, each carrying its subtree inline
via children. We collect those into an
ordered roots vector (each element already carries
its own id). name and element_id are present only when a subtree was
requested (see ReleaseTablesRequest::element);
for a whole-release request they are absent.
Fields§
§name: Option<String>The name of the requested element, when a subtree was requested.
element_id: Option<ReleaseElementId>The id of the requested element, when a subtree was requested.
roots: Vec<ReleaseTableElement>The root elements of the tree, ordered by element id. (FRED’s redundant
top-level release_id — a string, unlike the numeric one on each
element — is dropped; the caller already knows it.)
On the wire FRED names this elements (an object keyed by id); we read
that but re-serialize as a roots array, matching this field and the
flattened shape.
Trait Implementations§
Source§impl Clone for ReleaseTable
impl Clone for ReleaseTable
Source§fn clone(&self) -> ReleaseTable
fn clone(&self) -> ReleaseTable
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 ReleaseTable
impl Debug for ReleaseTable
Source§impl<'de> Deserialize<'de> for ReleaseTable
impl<'de> Deserialize<'de> for ReleaseTable
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 ReleaseTable
impl PartialEq for ReleaseTable
Source§fn eq(&self, other: &ReleaseTable) -> bool
fn eq(&self, other: &ReleaseTable) -> bool
self and other values to be equal, and is used by ==.