[][src]Struct fitparse::fittypes::FitMessageRecord

pub struct FitMessageRecord {
    pub raw_bytes: Vec<u8>,
    pub subfield_field_numbers: Vec<u8>,
    pub message_name: &'static str,
    pub timestamp: FitFieldBasicValue<FitFieldDateTime>,
    pub position_lat: FitFieldAdjustedValue<FitSint32>,
    pub position_long: FitFieldAdjustedValue<FitSint32>,
    pub altitude: FitFieldAdjustedValue<FitUint16>,
    pub heart_rate: FitFieldBasicValue<FitUint8>,
    pub cadence: FitFieldBasicValue<FitUint8>,
    pub distance: FitFieldAdjustedValue<FitUint32>,
    pub speed: FitFieldAdjustedValue<FitUint16>,
    pub power: FitFieldBasicValue<FitUint16>,
    pub compressed_speed_distance: FitFieldBasicValue<FitByte>,
    pub grade: FitFieldAdjustedValue<FitSint16>,
    pub resistance: FitFieldBasicValue<FitUint8>,
    pub time_from_course: FitFieldAdjustedValue<FitSint32>,
    pub cycle_length: FitFieldAdjustedValue<FitUint8>,
    pub temperature: FitFieldBasicValue<FitSint8>,
    pub speed_1s: FitFieldAdjustedValue<FitUint8>,
    pub cycles: FitFieldBasicValue<FitUint8>,
    pub total_cycles: FitFieldBasicValue<FitUint32>,
    pub compressed_accumulated_power: FitFieldBasicValue<FitUint16>,
    pub accumulated_power: FitFieldBasicValue<FitUint32>,
    pub left_right_balance: FitFieldBasicValue<FitFieldLeftRightBalance>,
    pub gps_accuracy: FitFieldBasicValue<FitUint8>,
    pub vertical_speed: FitFieldAdjustedValue<FitSint16>,
    pub calories: FitFieldBasicValue<FitUint16>,
    pub vertical_oscillation: FitFieldAdjustedValue<FitUint16>,
    pub stance_time_percent: FitFieldAdjustedValue<FitUint16>,
    pub stance_time: FitFieldAdjustedValue<FitUint16>,
    pub activity_type: FitFieldBasicValue<FitFieldActivityType>,
    pub left_torque_effectiveness: FitFieldAdjustedValue<FitUint8>,
    pub right_torque_effectiveness: FitFieldAdjustedValue<FitUint8>,
    pub left_pedal_smoothness: FitFieldAdjustedValue<FitUint8>,
    pub right_pedal_smoothness: FitFieldAdjustedValue<FitUint8>,
    pub combined_pedal_smoothness: FitFieldAdjustedValue<FitUint8>,
    pub time128: FitFieldAdjustedValue<FitUint8>,
    pub stroke_type: FitFieldBasicValue<FitFieldStrokeType>,
    pub zone: FitFieldBasicValue<FitUint8>,
    pub ball_speed: FitFieldAdjustedValue<FitUint16>,
    pub cadence256: FitFieldAdjustedValue<FitUint16>,
    pub fractional_cadence: FitFieldAdjustedValue<FitUint8>,
    pub total_hemoglobin_conc: FitFieldAdjustedValue<FitUint16>,
    pub total_hemoglobin_conc_min: FitFieldAdjustedValue<FitUint16>,
    pub total_hemoglobin_conc_max: FitFieldAdjustedValue<FitUint16>,
    pub saturated_hemoglobin_percent: FitFieldAdjustedValue<FitUint16>,
    pub saturated_hemoglobin_percent_min: FitFieldAdjustedValue<FitUint16>,
    pub saturated_hemoglobin_percent_max: FitFieldAdjustedValue<FitUint16>,
    pub device_index: FitFieldBasicValue<FitFieldDeviceIndex>,
    pub left_pco: FitFieldBasicValue<FitSint8>,
    pub right_pco: FitFieldBasicValue<FitSint8>,
    pub left_power_phase: FitFieldAdjustedValue<FitUint8>,
    pub left_power_phase_peak: FitFieldAdjustedValue<FitUint8>,
    pub right_power_phase: FitFieldAdjustedValue<FitUint8>,
    pub right_power_phase_peak: FitFieldAdjustedValue<FitUint8>,
    pub enhanced_speed: FitFieldAdjustedValue<FitUint32>,
    pub enhanced_altitude: FitFieldAdjustedValue<FitUint32>,
    pub battery_soc: FitFieldAdjustedValue<FitUint8>,
    pub motor_power: FitFieldBasicValue<FitUint16>,
    pub vertical_ratio: FitFieldAdjustedValue<FitUint16>,
    pub stance_time_balance: FitFieldAdjustedValue<FitUint16>,
    pub step_length: FitFieldAdjustedValue<FitUint16>,
    pub absolute_pressure: FitFieldBasicValue<FitUint32>,
    pub depth: FitFieldAdjustedValue<FitUint32>,
    pub next_stop_depth: FitFieldAdjustedValue<FitUint32>,
    pub next_stop_time: FitFieldAdjustedValue<FitUint32>,
    pub time_to_surface: FitFieldAdjustedValue<FitUint32>,
    pub ndl_time: FitFieldAdjustedValue<FitUint32>,
    pub cns_load: FitFieldBasicValue<FitUint8>,
    pub n2_load: FitFieldAdjustedValue<FitUint16>,
    pub grit: FitFieldBasicValue<FitFloat32>,
    pub flow: FitFieldBasicValue<FitFloat32>,
    pub ebike_travel_range: FitFieldBasicValue<FitUint16>,
    pub ebike_battery_level: FitFieldBasicValue<FitUint8>,
    pub ebike_assist_mode: FitFieldBasicValue<FitUint8>,
    pub ebike_assist_level_percent: FitFieldBasicValue<FitUint8>,
    // some fields omitted
}

Fields

raw_bytes: Vec<u8>subfield_field_numbers: Vec<u8>message_name: &'static strtimestamp: FitFieldBasicValue<FitFieldDateTime>position_lat: FitFieldAdjustedValue<FitSint32>position_long: FitFieldAdjustedValue<FitSint32>altitude: FitFieldAdjustedValue<FitUint16>heart_rate: FitFieldBasicValue<FitUint8>cadence: FitFieldBasicValue<FitUint8>distance: FitFieldAdjustedValue<FitUint32>speed: FitFieldAdjustedValue<FitUint16>power: FitFieldBasicValue<FitUint16>compressed_speed_distance: FitFieldBasicValue<FitByte>grade: FitFieldAdjustedValue<FitSint16>resistance: FitFieldBasicValue<FitUint8>time_from_course: FitFieldAdjustedValue<FitSint32>cycle_length: FitFieldAdjustedValue<FitUint8>temperature: FitFieldBasicValue<FitSint8>speed_1s: FitFieldAdjustedValue<FitUint8>cycles: FitFieldBasicValue<FitUint8>total_cycles: FitFieldBasicValue<FitUint32>compressed_accumulated_power: FitFieldBasicValue<FitUint16>accumulated_power: FitFieldBasicValue<FitUint32>left_right_balance: FitFieldBasicValue<FitFieldLeftRightBalance>gps_accuracy: FitFieldBasicValue<FitUint8>vertical_speed: FitFieldAdjustedValue<FitSint16>calories: FitFieldBasicValue<FitUint16>vertical_oscillation: FitFieldAdjustedValue<FitUint16>stance_time_percent: FitFieldAdjustedValue<FitUint16>stance_time: FitFieldAdjustedValue<FitUint16>activity_type: FitFieldBasicValue<FitFieldActivityType>left_torque_effectiveness: FitFieldAdjustedValue<FitUint8>right_torque_effectiveness: FitFieldAdjustedValue<FitUint8>left_pedal_smoothness: FitFieldAdjustedValue<FitUint8>right_pedal_smoothness: FitFieldAdjustedValue<FitUint8>combined_pedal_smoothness: FitFieldAdjustedValue<FitUint8>time128: FitFieldAdjustedValue<FitUint8>stroke_type: FitFieldBasicValue<FitFieldStrokeType>zone: FitFieldBasicValue<FitUint8>ball_speed: FitFieldAdjustedValue<FitUint16>cadence256: FitFieldAdjustedValue<FitUint16>fractional_cadence: FitFieldAdjustedValue<FitUint8>total_hemoglobin_conc: FitFieldAdjustedValue<FitUint16>total_hemoglobin_conc_min: FitFieldAdjustedValue<FitUint16>total_hemoglobin_conc_max: FitFieldAdjustedValue<FitUint16>saturated_hemoglobin_percent: FitFieldAdjustedValue<FitUint16>saturated_hemoglobin_percent_min: FitFieldAdjustedValue<FitUint16>saturated_hemoglobin_percent_max: FitFieldAdjustedValue<FitUint16>device_index: FitFieldBasicValue<FitFieldDeviceIndex>left_pco: FitFieldBasicValue<FitSint8>right_pco: FitFieldBasicValue<FitSint8>left_power_phase: FitFieldAdjustedValue<FitUint8>left_power_phase_peak: FitFieldAdjustedValue<FitUint8>right_power_phase: FitFieldAdjustedValue<FitUint8>right_power_phase_peak: FitFieldAdjustedValue<FitUint8>enhanced_speed: FitFieldAdjustedValue<FitUint32>enhanced_altitude: FitFieldAdjustedValue<FitUint32>battery_soc: FitFieldAdjustedValue<FitUint8>motor_power: FitFieldBasicValue<FitUint16>vertical_ratio: FitFieldAdjustedValue<FitUint16>stance_time_balance: FitFieldAdjustedValue<FitUint16>step_length: FitFieldAdjustedValue<FitUint16>absolute_pressure: FitFieldBasicValue<FitUint32>depth: FitFieldAdjustedValue<FitUint32>next_stop_depth: FitFieldAdjustedValue<FitUint32>next_stop_time: FitFieldAdjustedValue<FitUint32>time_to_surface: FitFieldAdjustedValue<FitUint32>ndl_time: FitFieldAdjustedValue<FitUint32>cns_load: FitFieldBasicValue<FitUint8>n2_load: FitFieldAdjustedValue<FitUint16>grit: FitFieldBasicValue<FitFloat32>flow: FitFieldBasicValue<FitFloat32>ebike_travel_range: FitFieldBasicValue<FitUint16>ebike_battery_level: FitFieldBasicValue<FitUint8>ebike_assist_mode: FitFieldBasicValue<FitUint8>ebike_assist_level_percent: FitFieldBasicValue<FitUint8>

Implementations

impl FitMessageRecord[src]

pub fn field_name(field_number: u8) -> &'static str[src]

pub fn new(
    header: FitRecordHeader,
    parsing_state: &FitParsingState
) -> Result<FitMessageRecord>
[src]

Trait Implementations

impl Debug for FitMessageRecord[src]

impl Display for FitMessageRecord[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.