pub struct ScoreBreakdown {
pub weight: i64,
pub priority: Priority,
pub priority_value: f64,
pub state: TaskState,
pub state_bonus: f64,
pub base: f64,
pub age_days: f64,
pub age_bonus: f64,
pub total: f64,
}Expand description
The score decomposition — every term visible (§7, §12).
Fields§
§weight: i64§priority: Priority§priority_value: f64§state: TaskState§state_bonus: f64Static per-state nudge folded into the priority term (§7).
base: f64weight × (priority_value + state_bonus)
age_days: f64§age_bonus: f640.1 × age_days, capped at 2
total: f64Trait Implementations§
Source§impl Clone for ScoreBreakdown
impl Clone for ScoreBreakdown
Source§fn clone(&self) -> ScoreBreakdown
fn clone(&self) -> ScoreBreakdown
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScoreBreakdown
Source§impl Debug for ScoreBreakdown
impl Debug for ScoreBreakdown
Source§impl PartialEq for ScoreBreakdown
impl PartialEq for ScoreBreakdown
impl StructuralPartialEq for ScoreBreakdown
Auto Trait Implementations§
impl Freeze for ScoreBreakdown
impl RefUnwindSafe for ScoreBreakdown
impl Send for ScoreBreakdown
impl Sync for ScoreBreakdown
impl Unpin for ScoreBreakdown
impl UnsafeUnpin for ScoreBreakdown
impl UnwindSafe for ScoreBreakdown
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
Mutably borrows from an owned value. Read more