pub struct WeightedProgress {
pub own_weight: Option<i64>,
pub weighted_children: usize,
pub unweighted_children: usize,
pub done_weight: i64,
pub total_weight: i64,
pub percent: Option<u32>,
}Expand description
The weight-aware figure of an epic (data-model §6).
A member with no weight is excluded rather than counted as zero — the
shape WP01 settled and data-model.md §6 records. The weighted population is
the epic’s child epics, each contributing its own weight; a child counts
as done when it has at least one member and every one of them is complete. A
child with no weight, like a member issue (issues carry no weight — research
R3), contributes nothing and is counted in unweighted_children so the
exclusion is visible rather than silent. own_weight reports the epic’s own
weight, which is what a parent epic’s figure consumes; this epic’s own
figure never includes it, so no number is counted twice.
Fields§
§own_weight: Option<i64>This epic’s own weight, None when unset.
weighted_children: usizeChildren that carry a weight and therefore contribute.
unweighted_children: usizeChildren excluded because they carry no weight.
done_weight: i64Σ weights of the weighted children that are complete.
total_weight: i64Σ weights of the weighted children — the weighted population.
percent: Option<u32>done_weight as a floored integer percentage of total_weight;
None when the weighted population is empty, so “no weight to report”
stays distinguishable from “0% done”.
Trait Implementations§
Source§impl Clone for WeightedProgress
impl Clone for WeightedProgress
Source§impl Debug for WeightedProgress
impl Debug for WeightedProgress
impl Eq for WeightedProgress
Source§impl PartialEq for WeightedProgress
impl PartialEq for WeightedProgress
impl StructuralPartialEq for WeightedProgress
Auto Trait Implementations§
impl Freeze for WeightedProgress
impl RefUnwindSafe for WeightedProgress
impl Send for WeightedProgress
impl Sync for WeightedProgress
impl Unpin for WeightedProgress
impl UnsafeUnpin for WeightedProgress
impl UnwindSafe for WeightedProgress
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<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