Skip to main content

DetailedActivity

Struct DetailedActivity 

Source
pub struct DetailedActivity {
Show 53 fields pub id: Option<i64>, pub external_id: Option<String>, pub upload_id: Option<i64>, pub athlete: Option<MetaAthlete>, pub name: Option<String>, pub distance: Option<f32>, pub moving_time: Option<i32>, pub elapsed_time: Option<i32>, pub total_elevation_gain: Option<f32>, pub elev_high: Option<f32>, pub elev_low: Option<f32>, pub type: Option<ActivityType>, pub sport_type: Option<SportType>, pub start_date: Option<DateTime<Utc>>, pub start_date_local: Option<DateTime<Utc>>, pub timezone: Option<String>, pub start_latlng: Option<LatLng>, pub end_latlng: Option<LatLng>, pub achievement_count: Option<i32>, pub kudos_count: Option<i32>, pub comment_count: Option<i32>, pub athlete_count: Option<i32>, pub photo_count: Option<i32>, pub total_photo_count: Option<i32>, pub map: Option<PolylineMap>, pub trainer: Option<bool>, pub commute: Option<bool>, pub manual: Option<bool>, pub private: Option<bool>, pub flagged: Option<bool>, pub workout_type: Option<i32>, pub upload_id_str: Option<String>, pub average_speed: Option<f32>, pub max_speed: Option<f32>, pub has_kudoed: Option<bool>, pub hide_from_home: Option<bool>, pub gear_id: Option<String>, pub kilojoules: Option<f32>, pub average_watts: Option<f32>, pub device_watts: Option<bool>, pub max_watts: Option<i32>, pub weighted_average_watts: Option<i32>, pub description: Option<String>, pub photos: Option<PhotosSummary>, pub gear: Option<SummaryGear>, pub calories: Option<f32>, pub segment_efforts: Option<Vec<DetailedSegmentEffort>>, pub device_name: Option<String>, pub embed_token: Option<String>, pub splits_metric: Option<Vec<Split>>, pub splits_standard: Option<Vec<Split>>, pub laps: Option<Vec<Lap>>, pub best_efforts: Option<Vec<DetailedSegmentEffort>>,
}

Fields§

§id: Option<i64>§external_id: Option<String>§upload_id: Option<i64>§athlete: Option<MetaAthlete>§name: Option<String>§distance: Option<f32>§moving_time: Option<i32>§elapsed_time: Option<i32>§total_elevation_gain: Option<f32>§elev_high: Option<f32>§elev_low: Option<f32>§type: Option<ActivityType>
👎Deprecated:

Use sport_type instead

§sport_type: Option<SportType>§start_date: Option<DateTime<Utc>>§start_date_local: Option<DateTime<Utc>>§timezone: Option<String>§start_latlng: Option<LatLng>§end_latlng: Option<LatLng>§achievement_count: Option<i32>§kudos_count: Option<i32>§comment_count: Option<i32>§athlete_count: Option<i32>§photo_count: Option<i32>§total_photo_count: Option<i32>§map: Option<PolylineMap>§trainer: Option<bool>§commute: Option<bool>§manual: Option<bool>§private: Option<bool>§flagged: Option<bool>§workout_type: Option<i32>§upload_id_str: Option<String>§average_speed: Option<f32>§max_speed: Option<f32>§has_kudoed: Option<bool>§hide_from_home: Option<bool>§gear_id: Option<String>§kilojoules: Option<f32>§average_watts: Option<f32>§device_watts: Option<bool>§max_watts: Option<i32>§weighted_average_watts: Option<i32>§description: Option<String>§photos: Option<PhotosSummary>§gear: Option<SummaryGear>§calories: Option<f32>§segment_efforts: Option<Vec<DetailedSegmentEffort>>§device_name: Option<String>§embed_token: Option<String>§splits_metric: Option<Vec<Split>>§splits_standard: Option<Vec<Split>>§laps: Option<Vec<Lap>>§best_efforts: Option<Vec<DetailedSegmentEffort>>

Trait Implementations§

Source§

impl Clone for DetailedActivity

Source§

fn clone(&self) -> DetailedActivity

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DetailedActivity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DetailedActivity

Source§

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<DetailedActivity> for CreateActivityRequest

Source§

fn send<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<DetailedActivity, ErrorWrapper>> + Send + 'async_trait>>
where Self: 'async_trait,

Source§

impl Sendable<DetailedActivity> for UpdateActivityRequest

Source§

fn send<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<DetailedActivity, ErrorWrapper>> + Send + 'async_trait>>
where Self: 'async_trait,

Source§

impl Serialize for DetailedActivity

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,