pub struct Projection {
pub scope: AnalyticsScope,
pub mode: Mode,
pub unit: Option<String>,
pub as_of: String,
pub end_date: String,
pub remaining: Option<i64>,
pub observed_rate: Option<f64>,
pub projected_completion: Option<String>,
pub meets_end_date: Option<bool>,
pub status: ProjectionStatus,
pub formula_version: String,
pub diagnostics: Vec<AnalyticsDiagnostic>,
}Expand description
The read-only end-date forecast over one series (data-model §5).
observed_rate and remaining are in the series’ own unit — the counts of
count mode, or the converted units of estimate mode — which mode/unit carry
so a reader never sees a rate without the unit it is expressed in.
The type holds an AnalyticsScope (and therefore no serde derive, like
BurndownSeries): the chart document either derives these types at the
export layer or mirrors them there.
Fields§
§scope: AnalyticsScopeThe selected cycle/milestone, period and snapshot binding.
mode: ModeHow the series the projection was drawn from counts.
unit: Option<String>The unit the remaining work and the rate are expressed in, in estimate mode.
as_of: StringThe forecast origin — the caller’s day, never a clock.
end_date: StringThe planning end date the forecast is drawn against, as the caller supplied it.
remaining: Option<i64>The remaining work the series carried to as_of, in the series’ unit.
observed_rate: Option<f64>The observed completion rate, in the series’ unit per calendar day.
projected_completion: Option<String>The forecast completion date, when one follows.
meets_end_date: Option<bool>Whether the projected completion falls on or before end_date; None when
no date was projected.
status: ProjectionStatusWhether the projection could answer, and with what.
formula_version: StringThe documented formula this projection was drawn under.
diagnostics: Vec<AnalyticsDiagnostic>Why no date was projected, when one was not.
Implementations§
Source§impl Projection
impl Projection
Sourcepub fn is_projected(&self) -> bool
pub fn is_projected(&self) -> bool
Whether a completion date was derived.
Sourcepub fn projected_completion(&self) -> Option<&str>
pub fn projected_completion(&self) -> Option<&str>
The projected completion date, when one was derived.
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§impl Debug for Projection
impl Debug for Projection
Source§impl PartialEq for Projection
impl PartialEq for Projection
impl StructuralPartialEq for Projection
Auto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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,
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