pub struct SleepDebtReport {
pub target_sleep_min: f64,
pub nights_analyzed: u32,
pub cumulative_debt_min: f64,
pub avg_duration_min: f64,
pub avg_efficiency: Option<f64>,
pub chronic_sleep_debt_flag: bool,
pub formula_note: String,
}Fields§
§target_sleep_min: f64§nights_analyzed: u32§cumulative_debt_min: f64§avg_duration_min: f64§avg_efficiency: Option<f64>§chronic_sleep_debt_flag: boolTrue when avg efficiency < 70% and avg hours < 6 (mirrors sleep_debt.n3 pattern flag).
formula_note: StringTrait Implementations§
Source§impl Clone for SleepDebtReport
impl Clone for SleepDebtReport
Source§impl Debug for SleepDebtReport
impl Debug for SleepDebtReport
Source§impl<'de> Deserialize<'de> for SleepDebtReport
impl<'de> Deserialize<'de> for SleepDebtReport
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 SleepDebtReport
impl PartialEq for SleepDebtReport
Source§impl Serialize for SleepDebtReport
impl Serialize for SleepDebtReport
impl StructuralPartialEq for SleepDebtReport
Auto Trait Implementations§
impl Freeze for SleepDebtReport
impl RefUnwindSafe for SleepDebtReport
impl Send for SleepDebtReport
impl Sync for SleepDebtReport
impl Unpin for SleepDebtReport
impl UnsafeUnpin for SleepDebtReport
impl UnwindSafe for SleepDebtReport
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