pub struct ScaleEntry {
pub date: NaiveDate,
pub weight: f64,
pub body_fat: Option<f64>,
pub source: Option<String>,
}Expand description
A weight/scale measurement entry.
Fields§
§date: NaiveDate§weight: f64Weight in kg
body_fat: Option<f64>Body fat percentage
source: Option<String>Source (e.g. “m” = manual, “a” = Apple Health)
Trait Implementations§
Source§impl Clone for ScaleEntry
impl Clone for ScaleEntry
Source§fn clone(&self) -> ScaleEntry
fn clone(&self) -> ScaleEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ScaleEntry
impl Debug for ScaleEntry
Source§impl<'de> Deserialize<'de> for ScaleEntry
impl<'de> Deserialize<'de> for ScaleEntry
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 ScaleEntry
impl RefUnwindSafe for ScaleEntry
impl Send for ScaleEntry
impl Sync for ScaleEntry
impl Unpin for ScaleEntry
impl UnsafeUnpin for ScaleEntry
impl UnwindSafe for ScaleEntry
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