[−][src]Struct wccg_models::activity::Stats
Implementations
impl Stats
[src]
pub fn distance(&self) -> &f32
[src]
pub fn count(&self) -> &i32
[src]
pub fn total_elevation_gain(&self) -> &Option<f32>
[src]
pub fn commute_distance(&self) -> &f32
[src]
pub fn commute_count(&self) -> &i32
[src]
pub fn commute_total_elevation_gain(&self) -> &Option<f32>
[src]
pub fn longest_activity(&self) -> &Option<Activity>
[src]
pub fn last_activity(&self) -> &Option<Activity>
[src]
impl Stats
[src]
pub fn set_distance(&mut self, val: f32) -> &mut Self
[src]
pub fn set_count(&mut self, val: i32) -> &mut Self
[src]
pub fn set_total_elevation_gain(&mut self, val: Option<f32>) -> &mut Self
[src]
pub fn set_commute_distance(&mut self, val: f32) -> &mut Self
[src]
pub fn set_commute_count(&mut self, val: i32) -> &mut Self
[src]
pub fn set_commute_total_elevation_gain(
&mut self,
val: Option<f32>
) -> &mut Self
[src]
&mut self,
val: Option<f32>
) -> &mut Self
pub fn set_longest_activity(&mut self, val: Option<Activity>) -> &mut Self
[src]
pub fn set_last_activity(&mut self, val: Option<Activity>) -> &mut Self
[src]
Trait Implementations
impl Debug for Stats
[src]
impl Default for Stats
[src]
impl<'de> Deserialize<'de> for Stats
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Stats
[src]
Auto Trait Implementations
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,