pub struct Stats { /* private fields */ }Implementations§
Source§impl Stats
impl Stats
pub fn distance(&self) -> &f32
pub fn count(&self) -> &i32
pub fn total_elevation_gain(&self) -> &Option<f32>
pub fn commute_distance(&self) -> &f32
pub fn commute_count(&self) -> &i32
pub fn commute_total_elevation_gain(&self) -> &Option<f32>
pub fn longest_activity(&self) -> &Option<Activity>
pub fn last_activity(&self) -> &Option<Activity>
Source§impl Stats
impl Stats
pub fn set_distance(&mut self, val: f32) -> &mut Self
pub fn set_count(&mut self, val: i32) -> &mut Self
pub fn set_total_elevation_gain(&mut self, val: Option<f32>) -> &mut Self
pub fn set_commute_distance(&mut self, val: f32) -> &mut Self
pub fn set_commute_count(&mut self, val: i32) -> &mut Self
pub fn set_commute_total_elevation_gain( &mut self, val: Option<f32>, ) -> &mut Self
pub fn set_longest_activity(&mut self, val: Option<Activity>) -> &mut Self
pub fn set_last_activity(&mut self, val: Option<Activity>) -> &mut Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
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 Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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