pub struct FitWorkoutStepMsg {
Show 15 fields pub message_index: u16, pub step_name: Option<String>, pub duration_type: Option<u8>, pub duration_value: Option<u32>, pub target_type: Option<u8>, pub target_value: Option<u32>, pub custom_target_low: Option<u32>, pub custom_target_high: Option<u32>, pub intensity: Option<u8>, pub notes: Option<String>, pub equipment: Option<u8>, pub secondary_target_type: Option<u8>, pub secondary_target_value: Option<u32>, pub secondary_custom_target_low: Option<u32>, pub secondary_custom_target_high: Option<u32>,
}

Fields§

§message_index: u16§step_name: Option<String>§duration_type: Option<u8>

enum values defined in constants WORKOUT_STEP_DURATION_*

§duration_value: Option<u32>§target_type: Option<u8>

enum values defined in constants WORKOUT_STEP_TARGET_*

§target_value: Option<u32>

If target_type indicates speed, heart rate, cadence or power, then this indicates zones with value >0 or target_value = 0 for custom values defined with custom_target_low and custom_target_high

§custom_target_low: Option<u32>

If target_type indicates power, then values 0-1000 are to be interpreted as percentage of user FTP (0%-1000%), values greater than 1000 are to be interpreted as (1000 + absolute power). E.g. 1250 would be absolute power of 250W.

If target_type indicates heart rate, then values 0-100 are to be interpreted as percentage of use max heart rate (0%-100%), values greater than 100 are to be interpreted as (100 + absolute heart rate). E.g. 250 would be absolute HR of 150BPM.

§custom_target_high: Option<u32>

See custom_target_low for more details of the content

§intensity: Option<u8>

enum values defined in constants INTENSITY_*

§notes: Option<String>§equipment: Option<u8>

enum values defined in constants WORKOUT_EQUIPMENT_*

§secondary_target_type: Option<u8>

enum values defined in constants WORKOUT_STEP_TARGET_*

§secondary_target_value: Option<u32>

See target_value for more details of the content

§secondary_custom_target_low: Option<u32>

See custom_target_low for more details for the content

§secondary_custom_target_high: Option<u32>

See custom_target_low for more details for the content

Implementations§

Trait Implementations§

source§

impl Clone for FitWorkoutStepMsg

source§

fn clone(&self) -> FitWorkoutStepMsg

Returns a copy 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 FitWorkoutStepMsg

source§

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

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

impl PartialEq for FitWorkoutStepMsg

source§

fn eq(&self, other: &FitWorkoutStepMsg) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for FitWorkoutStepMsg

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

§

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

§

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

§

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.