pub struct ChartSeries {
pub scope: ChartScope,
pub mode: Mode,
pub unit: Option<String>,
pub points: Vec<DailyPoint>,
pub diagnostics: Vec<AnalyticsDiagnostic>,
pub formula_version: String,
}Expand description
The ordered daily series, in the document’s own serde shape (data-model.md §4).
A mirror of WP02’s BurndownSeries: the scope, mode, unit, points, findings and
formula version. The aggregate coverage tally is the document’s (data-model.md
§6), taken from the shared BurndownSeries::coverage accessor, so it is not
repeated here.
Fields§
§scope: ChartScopeThe selected cycle/milestone, its period and its snapshot binding.
mode: ModeHow the series counts.
unit: Option<String>The unit the values are counted in, null in count mode (an issue count is
unitless).
points: Vec<DailyPoint>The ordered daily points, in calendar order, gaps included.
diagnostics: Vec<AnalyticsDiagnostic>The findings, in the series’ deterministic order.
formula_version: StringThe documented formula this series was folded under.
Implementations§
Source§impl ChartSeries
impl ChartSeries
Sourcepub fn from_series(series: &BurndownSeries) -> Self
pub fn from_series(series: &BurndownSeries) -> Self
Project a shared BurndownSeries into the document’s shape.
A pure field copy: the points are the fold’s own ordered days, the diagnostics are
the fold’s own sorted findings, and the unit is null exactly when the series
says it is unitless. Nothing is recomputed and nothing is added.
Trait Implementations§
Source§impl Clone for ChartSeries
impl Clone for ChartSeries
Source§impl Debug for ChartSeries
impl Debug for ChartSeries
Source§impl<'de> Deserialize<'de> for ChartSeries
impl<'de> Deserialize<'de> for ChartSeries
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>,
impl Eq for ChartSeries
Source§impl PartialEq for ChartSeries
impl PartialEq for ChartSeries
Source§impl Serialize for ChartSeries
impl Serialize for ChartSeries
impl StructuralPartialEq for ChartSeries
Auto Trait Implementations§
impl Freeze for ChartSeries
impl RefUnwindSafe for ChartSeries
impl Send for ChartSeries
impl Sync for ChartSeries
impl Unpin for ChartSeries
impl UnsafeUnpin for ChartSeries
impl UnwindSafe for ChartSeries
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more