[−][src]Struct wccg_models::activity::Activity
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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Activity
[src]
Auto Trait Implementations
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,