[][src]Struct wccg_models::activity::Stats

pub struct Stats { /* fields omitted */ }

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,