Struct fit_file::fit_file::FitWorkoutStepMsg
source · 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§
source§impl FitWorkoutStepMsg
impl FitWorkoutStepMsg
pub fn new(message_index: u16, fields: Vec<FitFieldValue>) -> FitWorkoutStepMsg
Trait Implementations§
source§impl Clone for FitWorkoutStepMsg
impl Clone for FitWorkoutStepMsg
source§fn clone(&self) -> FitWorkoutStepMsg
fn clone(&self) -> FitWorkoutStepMsg
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FitWorkoutStepMsg
impl Debug for FitWorkoutStepMsg
source§impl PartialEq for FitWorkoutStepMsg
impl PartialEq for FitWorkoutStepMsg
source§fn eq(&self, other: &FitWorkoutStepMsg) -> bool
fn eq(&self, other: &FitWorkoutStepMsg) -> bool
self
and other
values to be equal, and is used
by ==
.