pub struct ProductivityConfig {
pub min_productivity_threshold: f64,
pub workday_hours: f64,
pub min_workday_fraction_before_suggest: f64,
}Expand description
Productivity thresholds for warnings and report validation.
Fields§
§min_productivity_threshold: f64Productivity percentage below which reports warn.
workday_hours: f64Expected workday length in hours.
min_workday_fraction_before_suggest: f64Fraction of the workday that must pass before warnings appear - early-day ratios swing too wildly to act on.
Trait Implementations§
Source§impl Clone for ProductivityConfig
impl Clone for ProductivityConfig
Source§fn clone(&self) -> ProductivityConfig
fn clone(&self) -> ProductivityConfig
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 moreSource§impl Debug for ProductivityConfig
impl Debug for ProductivityConfig
Source§impl Default for ProductivityConfig
impl Default for ProductivityConfig
Source§impl<'de> Deserialize<'de> for ProductivityConfig
impl<'de> Deserialize<'de> for ProductivityConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProductivityConfig
impl PartialEq for ProductivityConfig
Source§impl Serialize for ProductivityConfig
impl Serialize for ProductivityConfig
impl StructuralPartialEq for ProductivityConfig
Auto Trait Implementations§
impl Freeze for ProductivityConfig
impl RefUnwindSafe for ProductivityConfig
impl Send for ProductivityConfig
impl Sync for ProductivityConfig
impl Unpin for ProductivityConfig
impl UnsafeUnpin for ProductivityConfig
impl UnwindSafe for ProductivityConfig
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