pub struct DailyHealth {Show 28 fields
pub id: Option<i64>,
pub profile_id: i32,
pub date: NaiveDate,
pub steps: Option<i32>,
pub step_goal: Option<i32>,
pub total_calories: Option<i32>,
pub active_calories: Option<i32>,
pub bmr_calories: Option<i32>,
pub resting_hr: Option<i32>,
pub sleep_seconds: Option<i32>,
pub deep_sleep_seconds: Option<i32>,
pub light_sleep_seconds: Option<i32>,
pub rem_sleep_seconds: Option<i32>,
pub sleep_score: Option<i32>,
pub avg_stress: Option<i32>,
pub max_stress: Option<i32>,
pub body_battery_start: Option<i32>,
pub body_battery_end: Option<i32>,
pub hrv_weekly_avg: Option<i32>,
pub hrv_last_night: Option<i32>,
pub hrv_status: Option<String>,
pub avg_respiration: Option<f64>,
pub avg_spo2: Option<i32>,
pub lowest_spo2: Option<i32>,
pub hydration_ml: Option<i32>,
pub moderate_intensity_min: Option<i32>,
pub vigorous_intensity_min: Option<i32>,
pub raw_json: Option<Value>,
}Expand description
Daily health metrics
Fields§
§id: Option<i64>§profile_id: i32§date: NaiveDate§steps: Option<i32>§step_goal: Option<i32>§total_calories: Option<i32>§active_calories: Option<i32>§bmr_calories: Option<i32>§resting_hr: Option<i32>§sleep_seconds: Option<i32>§deep_sleep_seconds: Option<i32>§light_sleep_seconds: Option<i32>§rem_sleep_seconds: Option<i32>§sleep_score: Option<i32>§avg_stress: Option<i32>§max_stress: Option<i32>§body_battery_start: Option<i32>§body_battery_end: Option<i32>§hrv_weekly_avg: Option<i32>§hrv_last_night: Option<i32>§hrv_status: Option<String>§avg_respiration: Option<f64>§avg_spo2: Option<i32>§lowest_spo2: Option<i32>§hydration_ml: Option<i32>§moderate_intensity_min: Option<i32>§vigorous_intensity_min: Option<i32>§raw_json: Option<Value>Trait Implementations§
Source§impl Clone for DailyHealth
impl Clone for DailyHealth
Source§fn clone(&self) -> DailyHealth
fn clone(&self) -> DailyHealth
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DailyHealth
impl Debug for DailyHealth
Source§impl<'de> Deserialize<'de> for DailyHealth
impl<'de> Deserialize<'de> for DailyHealth
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
Auto Trait Implementations§
impl Freeze for DailyHealth
impl RefUnwindSafe for DailyHealth
impl Send for DailyHealth
impl Sync for DailyHealth
impl Unpin for DailyHealth
impl UnwindSafe for DailyHealth
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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