pub struct Activity {Show 40 fields
pub id: i64,
pub resource_state: u8,
pub external_id: Option<String>,
pub upload_id: Option<i64>,
pub athlete: SimpleAthlete,
pub name: String,
pub distance: f64,
pub moving_time: i32,
pub elapsed_time: i32,
pub total_elevation_gain: f64,
pub activity_type: String,
pub sport_type: String,
pub start_date: String,
pub start_date_local: String,
pub timezone: String,
pub utc_offset: f64,
pub achievement_count: i32,
pub kudos_count: i32,
pub comment_count: i32,
pub athlete_count: i32,
pub photo_count: i32,
pub map: Map,
pub trainer: bool,
pub commute: bool,
pub manual: bool,
pub private: bool,
pub flagged: bool,
pub gear_id: Option<String>,
pub from_accepted_tag: Option<bool>,
pub average_speed: f64,
pub max_speed: f64,
pub device_watts: Option<bool>,
pub has_heartrate: bool,
pub pr_count: i32,
pub total_photo_count: i32,
pub has_kudoed: bool,
pub workout_type: Option<i32>,
pub description: Option<String>,
pub calories: Option<f64>,
pub segment_efforts: Option<Vec<SegmentEffort>>,
}Fields§
§id: i64§resource_state: u8§external_id: Option<String>§upload_id: Option<i64>§athlete: SimpleAthlete§name: String§distance: f64§moving_time: i32§elapsed_time: i32§total_elevation_gain: f64§activity_type: String§sport_type: String§start_date: String§start_date_local: String§timezone: String§utc_offset: f64§achievement_count: i32§kudos_count: i32§comment_count: i32§athlete_count: i32§photo_count: i32§map: Map§trainer: bool§commute: bool§manual: bool§private: bool§flagged: bool§gear_id: Option<String>§from_accepted_tag: Option<bool>§average_speed: f64§max_speed: f64§device_watts: Option<bool>§has_heartrate: bool§pr_count: i32§total_photo_count: i32§has_kudoed: bool§workout_type: Option<i32>§description: Option<String>§calories: Option<f64>§segment_efforts: Option<Vec<SegmentEffort>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Sendable<Activity> for GetActivity
impl Sendable<Activity> for GetActivity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
impl UnwindSafe for Activity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more