[][src]Struct wccg_data::models::Activity

pub struct Activity {
    pub rider_id: String,
    pub name: Option<String>,
    pub description: Option<String>,
    pub data_source: Option<String>,
    pub external_source_name: Option<String>,
    pub external_activity_id: Option<String>,
    pub external_athlete_id: Option<String>,
    pub activity_type: Option<ActivityType>,
    pub distance: Option<f32>,
    pub moving_time: Option<i32>,
    pub elapsed_time: Option<i32>,
    pub start_date: Option<String>,
    pub start_timestamp: Option<i64>,
    pub start_date_local: Option<String>,
    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 timezone: Option<String>,
    pub utc_offset: Option<i32>,
    pub commute: Option<bool>,
    pub manual: Option<bool>,
    pub private: Option<bool>,
    pub flagged: Option<bool>,
    pub workout_type: Option<i32>,
}

Fields

rider_id: String

The rider id

name: Option<String>

The name of the activity

description: Option<String>

The description of the activity

data_source: Option<String>

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

external_source_name: Option<String>

The name of the data source, if external

external_activity_id: Option<String>

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

external_athlete_id: Option<String>

The external id of the athlete

activity_type: Option<ActivityType>

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

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

start_date: Option<String>

The time at which the activity was started

start_timestamp: Option<i64>

The timestamp at which the activity was started

start_date_local: Option<String>

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

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

timezone: Option<String>

The timezone of the activity

utc_offset: Option<i32>

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

Trait Implementations

impl Debug 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: 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.