pub struct FitRecordMsg {
Show 73 fields pub step_length: Option<u16>, pub resistance: Option<u8>, pub speed: Option<u16>, pub accumulated_power: Option<u32>, pub next_stop_depth: Option<u32>, pub stroke_type: Option<u8>, pub heart_rate: Option<u8>, pub cycles: Option<u8>, pub total_hemoglobin_conc: Option<u16>, pub time_from_course: Option<i32>, pub saturated_hemoglobin_percent: Option<u16>, pub cadence256: Option<u16>, pub ndl_time: Option<u32>, pub next_stop_time: Option<u32>, pub time128: Option<u8>, pub left_right_balance: Option<u8>, pub temperature: Option<i8>, pub position_long: Option<i32>, pub motor_power: Option<u16>, pub vertical_ratio: Option<u16>, pub grit: Option<f32>, pub compressed_accumulated_power: Option<u16>, pub position_lat: Option<i32>, pub ebike_assist_mode: Option<u8>, pub n2_load: Option<u16>, pub grade: Option<i16>, pub left_power_phase: Option<u8>, pub power: Option<u16>, pub timestamp: Option<u32>, pub vertical_oscillation: Option<u16>, pub fractional_cadence: Option<u8>, pub saturated_hemoglobin_percent_min: Option<u16>, pub cycle_length: Option<u8>, pub right_pedal_smoothness: Option<u8>, pub total_hemoglobin_conc_max: Option<u16>, pub stance_time_percent: Option<u16>, pub enhanced_altitude: Option<u32>, pub stance_time_balance: Option<u16>, pub speed_1s: Option<u8>, pub battery_soc: Option<u8>, pub total_hemoglobin_conc_min: Option<u16>, pub cns_load: Option<u8>, pub distance: Option<u32>, pub zone: Option<u8>, pub ball_speed: Option<u16>, pub gps_accuracy: Option<u8>, pub absolute_pressure: Option<u32>, pub calories: Option<u16>, pub stance_time: Option<u16>, pub right_pco: Option<i8>, pub ebike_travel_range: Option<u16>, pub left_torque_effectiveness: Option<u8>, pub activity_type: Option<u8>, pub depth: Option<u32>, pub enhanced_speed: Option<u32>, pub total_cycles: Option<u32>, pub vertical_speed: Option<i16>, pub combined_pedal_smoothness: Option<u8>, pub saturated_hemoglobin_percent_max: Option<u16>, pub altitude: Option<u16>, pub left_pco: Option<i8>, pub left_power_phase_peak: Option<u8>, pub flow: Option<f32>, pub device_index: Option<u8>, pub cadence: Option<u8>, pub ebike_assist_level_percent: Option<u8>, pub right_power_phase_peak: Option<u8>, pub ebike_battery_level: Option<u8>, pub compressed_speed_distance: Option<u8>, pub left_pedal_smoothness: Option<u8>, pub right_power_phase: Option<u8>, pub right_torque_effectiveness: Option<u8>, pub time_to_surface: Option<u32>,
}

Fields§

§step_length: Option<u16>§resistance: Option<u8>§speed: Option<u16>§accumulated_power: Option<u32>§next_stop_depth: Option<u32>§stroke_type: Option<u8>§heart_rate: Option<u8>§cycles: Option<u8>§total_hemoglobin_conc: Option<u16>§time_from_course: Option<i32>§saturated_hemoglobin_percent: Option<u16>§cadence256: Option<u16>§ndl_time: Option<u32>§next_stop_time: Option<u32>§time128: Option<u8>§left_right_balance: Option<u8>§temperature: Option<i8>§position_long: Option<i32>§motor_power: Option<u16>§vertical_ratio: Option<u16>§grit: Option<f32>§compressed_accumulated_power: Option<u16>§position_lat: Option<i32>§ebike_assist_mode: Option<u8>§n2_load: Option<u16>§grade: Option<i16>§left_power_phase: Option<u8>§power: Option<u16>§timestamp: Option<u32>§vertical_oscillation: Option<u16>§fractional_cadence: Option<u8>§saturated_hemoglobin_percent_min: Option<u16>§cycle_length: Option<u8>§right_pedal_smoothness: Option<u8>§total_hemoglobin_conc_max: Option<u16>§stance_time_percent: Option<u16>§enhanced_altitude: Option<u32>§stance_time_balance: Option<u16>§speed_1s: Option<u8>§battery_soc: Option<u8>§total_hemoglobin_conc_min: Option<u16>§cns_load: Option<u8>§distance: Option<u32>§zone: Option<u8>§ball_speed: Option<u16>§gps_accuracy: Option<u8>§absolute_pressure: Option<u32>§calories: Option<u16>§stance_time: Option<u16>§right_pco: Option<i8>§ebike_travel_range: Option<u16>§left_torque_effectiveness: Option<u8>§activity_type: Option<u8>§depth: Option<u32>§enhanced_speed: Option<u32>§total_cycles: Option<u32>§vertical_speed: Option<i16>§combined_pedal_smoothness: Option<u8>§saturated_hemoglobin_percent_max: Option<u16>§altitude: Option<u16>§left_pco: Option<i8>§left_power_phase_peak: Option<u8>§flow: Option<f32>§device_index: Option<u8>§cadence: Option<u8>§ebike_assist_level_percent: Option<u8>§right_power_phase_peak: Option<u8>§ebike_battery_level: Option<u8>§compressed_speed_distance: Option<u8>§left_pedal_smoothness: Option<u8>§right_power_phase: Option<u8>§right_torque_effectiveness: Option<u8>§time_to_surface: Option<u32>

Implementations§

source§

impl FitRecordMsg

source

pub fn new(fields: Vec<FitFieldValue>) -> Self

Constructor: Takes the fields that were read by the file parser and puts them into a structure.

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