[][src]Struct wccg_models::activity::Activity

pub struct Activity {
    pub distance: Option<f32>,
    pub moving_time: Option<i32>,
    pub elapsed_time: Option<i32>,
    pub total_elevation_gain: Option<f32>,
    pub start_timestamp: Option<i64>,
    pub start_timestamp_local: Option<i64>,
    pub start_day_local: Option<i32>,
    pub start_month_local: Option<i32>,
    pub start_year_local: Option<i32>,
    pub utc_offset: Option<f32>,
    pub commute: Option<bool>,
    pub manual: Option<bool>,
    pub private: Option<bool>,
    pub flagged: Option<bool>,
    pub workout_type: Option<i32>,
    // some fields omitted
}

Fields

distance: Option<f32>

The activity's distance, in meters

moving_time: Option<i32>

The activity's moving time, in seconds

elapsed_time: Option<i32>

The activity's elapsed time, in seconds

total_elevation_gain: Option<f32>

The activity's total elevation gain.

start_timestamp: Option<i64>

The timestamp at which the activity was started

start_timestamp_local: Option<i64>

The timestamp at which the activity was started, in local timezone

start_day_local: Option<i32>

The date of local start date

start_month_local: Option<i32>

The month of local start date

start_year_local: Option<i32>

The year of local start date

utc_offset: Option<f32>

The UTC offset of the local timezone

commute: Option<bool>

Whether this activity is a commute

manual: Option<bool>

Whether this activity was created manually

private: Option<bool>

Whether this activity is private

flagged: Option<bool>

Whether this activity is flagged

workout_type: Option<i32>

The activity's workout type

Implementations

impl Activity[src]

pub fn id(&self) -> &Option<ObjectId>[src]

pub fn rider_id(&self) -> &String[src]

The rider id

pub fn name(&self) -> &Option<String>[src]

The name of the activity

pub fn description(&self) -> &Option<String>[src]

The description of the activity

pub fn data_source(&self) -> &Option<String>[src]

The source of the data (external, manual, admin entry, etc)

pub fn external_source_name(&self) -> &Option<String>[src]

The name of the data source, if external

pub fn external_activity_id(&self) -> &Option<String>[src]

The external unique identifier of the activity from the external source (e.g., strava activity id)

pub fn external_athlete_id(&self) -> &Option<String>[src]

The external id of the athlete

pub fn activity_type(&self) -> &Option<ActivityType>[src]

The activity type. Could be Ride, Run, etc.

pub fn distance(&self) -> &Option<f32>[src]

The activity's distance, in meters

pub fn moving_time(&self) -> &Option<i32>[src]

The activity's moving time, in seconds

pub fn elapsed_time(&self) -> &Option<i32>[src]

The activity's elapsed time, in seconds

pub fn total_elevation_gain(&self) -> &Option<f32>[src]

The activity's total elevation gain.

pub fn start_date(&self) -> &Option<String>[src]

The time at which the activity was started

pub fn start_timestamp(&self) -> &Option<i64>[src]

The timestamp at which the activity was started

pub fn start_date_local(&self) -> &Option<String>[src]

The time at which the activity was started, in local timezone

pub fn start_timestamp_local(&self) -> &Option<i64>[src]

The timestamp at which the activity was started, in local timezone

pub fn start_day_local(&self) -> &Option<i32>[src]

The date of local start date

pub fn start_month_local(&self) -> &Option<i32>[src]

The month of local start date

pub fn start_year_local(&self) -> &Option<i32>[src]

The year of local start date

pub fn timezone(&self) -> &Option<String>[src]

The timezone of the activity

pub fn utc_offset(&self) -> &Option<f32>[src]

The UTC offset of the local timezone

pub fn commute(&self) -> &Option<bool>[src]

Whether this activity is a commute

pub fn manual(&self) -> &Option<bool>[src]

Whether this activity was created manually

pub fn private(&self) -> &Option<bool>[src]

Whether this activity is private

pub fn flagged(&self) -> &Option<bool>[src]

Whether this activity is flagged

pub fn workout_type(&self) -> &Option<i32>[src]

The activity's workout type

impl Activity[src]

pub fn set_id(&mut self, val: Option<ObjectId>) -> &mut Self[src]

pub fn set_rider_id(&mut self, val: String) -> &mut Self[src]

The rider id

pub fn set_name(&mut self, val: Option<String>) -> &mut Self[src]

The name of the activity

pub fn set_description(&mut self, val: Option<String>) -> &mut Self[src]

The description of the activity

pub fn set_data_source(&mut self, val: Option<String>) -> &mut Self[src]

The source of the data (external, manual, admin entry, etc)

pub fn set_external_source_name(&mut self, val: Option<String>) -> &mut Self[src]

The name of the data source, if external

pub fn set_external_activity_id(&mut self, val: Option<String>) -> &mut Self[src]

The external unique identifier of the activity from the external source (e.g., strava activity id)

pub fn set_external_athlete_id(&mut self, val: Option<String>) -> &mut Self[src]

The external id of the athlete

pub fn set_activity_type(&mut self, val: Option<ActivityType>) -> &mut Self[src]

The activity type. Could be Ride, Run, etc.

pub fn set_distance(&mut self, val: Option<f32>) -> &mut Self[src]

The activity's distance, in meters

pub fn set_moving_time(&mut self, val: Option<i32>) -> &mut Self[src]

The activity's moving time, in seconds

pub fn set_elapsed_time(&mut self, val: Option<i32>) -> &mut Self[src]

The activity's elapsed time, in seconds

pub fn set_total_elevation_gain(&mut self, val: Option<f32>) -> &mut Self[src]

The activity's total elevation gain.

pub fn set_start_date(&mut self, val: Option<String>) -> &mut Self[src]

The time at which the activity was started

pub fn set_start_timestamp(&mut self, val: Option<i64>) -> &mut Self[src]

The timestamp at which the activity was started

pub fn set_start_date_local(&mut self, val: Option<String>) -> &mut Self[src]

The time at which the activity was started, in local timezone

pub fn set_start_timestamp_local(&mut self, val: Option<i64>) -> &mut Self[src]

The timestamp at which the activity was started, in local timezone

pub fn set_start_day_local(&mut self, val: Option<i32>) -> &mut Self[src]

The date of local start date

pub fn set_start_month_local(&mut self, val: Option<i32>) -> &mut Self[src]

The month of local start date

pub fn set_start_year_local(&mut self, val: Option<i32>) -> &mut Self[src]

The year of local start date

pub fn set_timezone(&mut self, val: Option<String>) -> &mut Self[src]

The timezone of the activity

pub fn set_utc_offset(&mut self, val: Option<f32>) -> &mut Self[src]

The UTC offset of the local timezone

pub fn set_commute(&mut self, val: Option<bool>) -> &mut Self[src]

Whether this activity is a commute

pub fn set_manual(&mut self, val: Option<bool>) -> &mut Self[src]

Whether this activity was created manually

pub fn set_private(&mut self, val: Option<bool>) -> &mut Self[src]

Whether this activity is private

pub fn set_flagged(&mut self, val: Option<bool>) -> &mut Self[src]

Whether this activity is flagged

pub fn set_workout_type(&mut self, val: Option<i32>) -> &mut Self[src]

The activity's workout type

Trait Implementations

impl Clone for Activity[src]

impl Debug for Activity[src]

impl Default for Activity[src]

impl<'de> Deserialize<'de> for Activity[src]

impl Serialize for Activity[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,