Struct FitMessageSegmentLap

Source
pub struct FitMessageSegmentLap {
Show 94 fields pub raw_bytes: Vec<u8>, pub subfield_field_numbers: Vec<u8>, pub message_name: &'static str, pub message_index: FitFieldBasicValue<FitFieldMessageIndex>, pub timestamp: FitFieldBasicValue<FitFieldDateTime>, pub event: FitFieldBasicValue<FitFieldEvent>, pub event_type: FitFieldBasicValue<FitFieldEventType>, pub start_time: FitFieldBasicValue<FitFieldDateTime>, pub start_position_lat: FitFieldAdjustedValue<FitSint32>, pub start_position_long: FitFieldAdjustedValue<FitSint32>, pub end_position_lat: FitFieldAdjustedValue<FitSint32>, pub end_position_long: FitFieldAdjustedValue<FitSint32>, pub total_elapsed_time: FitFieldAdjustedValue<FitUint32>, pub total_timer_time: FitFieldAdjustedValue<FitUint32>, pub total_distance: FitFieldAdjustedValue<FitUint32>, pub total_cycles_subfield_bytes: Vec<u8>, pub total_cycles: FitMessageSegmentLapSubfieldTotalCycles, pub total_calories: FitFieldBasicValue<FitUint16>, pub total_fat_calories: FitFieldBasicValue<FitUint16>, pub avg_speed: FitFieldAdjustedValue<FitUint16>, pub max_speed: FitFieldAdjustedValue<FitUint16>, pub avg_heart_rate: FitFieldBasicValue<FitUint8>, pub max_heart_rate: FitFieldBasicValue<FitUint8>, pub avg_cadence: FitFieldBasicValue<FitUint8>, pub max_cadence: FitFieldBasicValue<FitUint8>, pub avg_power: FitFieldBasicValue<FitUint16>, pub max_power: FitFieldBasicValue<FitUint16>, pub total_ascent: FitFieldBasicValue<FitUint16>, pub total_descent: FitFieldBasicValue<FitUint16>, pub sport: FitFieldBasicValue<FitFieldSport>, pub event_group: FitFieldBasicValue<FitUint8>, pub nec_lat: FitFieldAdjustedValue<FitSint32>, pub nec_long: FitFieldAdjustedValue<FitSint32>, pub swc_lat: FitFieldAdjustedValue<FitSint32>, pub swc_long: FitFieldAdjustedValue<FitSint32>, pub name: FitFieldBasicValue<FitString>, pub normalized_power: FitFieldBasicValue<FitUint16>, pub left_right_balance: FitFieldBasicValue<FitFieldLeftRightBalance100>, pub sub_sport: FitFieldBasicValue<FitFieldSubSport>, pub total_work: FitFieldBasicValue<FitUint32>, pub avg_altitude: FitFieldAdjustedValue<FitUint16>, pub max_altitude: FitFieldAdjustedValue<FitUint16>, pub gps_accuracy: FitFieldBasicValue<FitUint8>, pub avg_grade: FitFieldAdjustedValue<FitSint16>, pub avg_pos_grade: FitFieldAdjustedValue<FitSint16>, pub avg_neg_grade: FitFieldAdjustedValue<FitSint16>, pub max_pos_grade: FitFieldAdjustedValue<FitSint16>, pub max_neg_grade: FitFieldAdjustedValue<FitSint16>, pub avg_temperature: FitFieldBasicValue<FitSint8>, pub max_temperature: FitFieldBasicValue<FitSint8>, pub total_moving_time: FitFieldAdjustedValue<FitUint32>, pub avg_pos_vertical_speed: FitFieldAdjustedValue<FitSint16>, pub avg_neg_vertical_speed: FitFieldAdjustedValue<FitSint16>, pub max_pos_vertical_speed: FitFieldAdjustedValue<FitSint16>, pub max_neg_vertical_speed: FitFieldAdjustedValue<FitSint16>, pub time_in_hr_zone: FitFieldAdjustedValue<FitUint32>, pub time_in_speed_zone: FitFieldAdjustedValue<FitUint32>, pub time_in_cadence_zone: FitFieldAdjustedValue<FitUint32>, pub time_in_power_zone: FitFieldAdjustedValue<FitUint32>, pub repetition_num: FitFieldBasicValue<FitUint16>, pub min_altitude: FitFieldAdjustedValue<FitUint16>, pub min_heart_rate: FitFieldBasicValue<FitUint8>, pub active_time: FitFieldAdjustedValue<FitUint32>, pub wkt_step_index: FitFieldBasicValue<FitFieldMessageIndex>, pub sport_event: FitFieldBasicValue<FitFieldSportEvent>, pub avg_left_torque_effectiveness: FitFieldAdjustedValue<FitUint8>, pub avg_right_torque_effectiveness: FitFieldAdjustedValue<FitUint8>, pub avg_left_pedal_smoothness: FitFieldAdjustedValue<FitUint8>, pub avg_right_pedal_smoothness: FitFieldAdjustedValue<FitUint8>, pub avg_combined_pedal_smoothness: FitFieldAdjustedValue<FitUint8>, pub status: FitFieldBasicValue<FitFieldSegmentLapStatus>, pub uuid: FitFieldBasicValue<FitString>, pub avg_fractional_cadence: FitFieldAdjustedValue<FitUint8>, pub max_fractional_cadence: FitFieldAdjustedValue<FitUint8>, pub total_fractional_cycles: FitFieldAdjustedValue<FitUint8>, pub front_gear_shift_count: FitFieldBasicValue<FitUint16>, pub rear_gear_shift_count: FitFieldBasicValue<FitUint16>, pub time_standing: FitFieldAdjustedValue<FitUint32>, pub stand_count: FitFieldBasicValue<FitUint16>, pub avg_left_pco: FitFieldBasicValue<FitSint8>, pub avg_right_pco: FitFieldBasicValue<FitSint8>, pub avg_left_power_phase: FitFieldAdjustedValue<FitUint8>, pub avg_left_power_phase_peak: FitFieldAdjustedValue<FitUint8>, pub avg_right_power_phase: FitFieldAdjustedValue<FitUint8>, pub avg_right_power_phase_peak: FitFieldAdjustedValue<FitUint8>, pub avg_power_position: FitFieldBasicValue<FitUint16>, pub max_power_position: FitFieldBasicValue<FitUint16>, pub avg_cadence_position: FitFieldBasicValue<FitUint8>, pub max_cadence_position: FitFieldBasicValue<FitUint8>, pub manufacturer: FitFieldBasicValue<FitFieldManufacturer>, pub total_grit: FitFieldBasicValue<FitFloat32>, pub total_flow: FitFieldBasicValue<FitFloat32>, pub avg_grit: FitFieldBasicValue<FitFloat32>, pub avg_flow: FitFieldBasicValue<FitFloat32>, /* private fields */
}

Fields§

§raw_bytes: Vec<u8>§subfield_field_numbers: Vec<u8>§message_name: &'static str§message_index: FitFieldBasicValue<FitFieldMessageIndex>§timestamp: FitFieldBasicValue<FitFieldDateTime>§event: FitFieldBasicValue<FitFieldEvent>§event_type: FitFieldBasicValue<FitFieldEventType>§start_time: FitFieldBasicValue<FitFieldDateTime>§start_position_lat: FitFieldAdjustedValue<FitSint32>§start_position_long: FitFieldAdjustedValue<FitSint32>§end_position_lat: FitFieldAdjustedValue<FitSint32>§end_position_long: FitFieldAdjustedValue<FitSint32>§total_elapsed_time: FitFieldAdjustedValue<FitUint32>§total_timer_time: FitFieldAdjustedValue<FitUint32>§total_distance: FitFieldAdjustedValue<FitUint32>§total_cycles_subfield_bytes: Vec<u8>§total_cycles: FitMessageSegmentLapSubfieldTotalCycles§total_calories: FitFieldBasicValue<FitUint16>§total_fat_calories: FitFieldBasicValue<FitUint16>§avg_speed: FitFieldAdjustedValue<FitUint16>§max_speed: FitFieldAdjustedValue<FitUint16>§avg_heart_rate: FitFieldBasicValue<FitUint8>§max_heart_rate: FitFieldBasicValue<FitUint8>§avg_cadence: FitFieldBasicValue<FitUint8>§max_cadence: FitFieldBasicValue<FitUint8>§avg_power: FitFieldBasicValue<FitUint16>§max_power: FitFieldBasicValue<FitUint16>§total_ascent: FitFieldBasicValue<FitUint16>§total_descent: FitFieldBasicValue<FitUint16>§sport: FitFieldBasicValue<FitFieldSport>§event_group: FitFieldBasicValue<FitUint8>§nec_lat: FitFieldAdjustedValue<FitSint32>§nec_long: FitFieldAdjustedValue<FitSint32>§swc_lat: FitFieldAdjustedValue<FitSint32>§swc_long: FitFieldAdjustedValue<FitSint32>§name: FitFieldBasicValue<FitString>§normalized_power: FitFieldBasicValue<FitUint16>§left_right_balance: FitFieldBasicValue<FitFieldLeftRightBalance100>§sub_sport: FitFieldBasicValue<FitFieldSubSport>§total_work: FitFieldBasicValue<FitUint32>§avg_altitude: FitFieldAdjustedValue<FitUint16>§max_altitude: FitFieldAdjustedValue<FitUint16>§gps_accuracy: FitFieldBasicValue<FitUint8>§avg_grade: FitFieldAdjustedValue<FitSint16>§avg_pos_grade: FitFieldAdjustedValue<FitSint16>§avg_neg_grade: FitFieldAdjustedValue<FitSint16>§max_pos_grade: FitFieldAdjustedValue<FitSint16>§max_neg_grade: FitFieldAdjustedValue<FitSint16>§avg_temperature: FitFieldBasicValue<FitSint8>§max_temperature: FitFieldBasicValue<FitSint8>§total_moving_time: FitFieldAdjustedValue<FitUint32>§avg_pos_vertical_speed: FitFieldAdjustedValue<FitSint16>§avg_neg_vertical_speed: FitFieldAdjustedValue<FitSint16>§max_pos_vertical_speed: FitFieldAdjustedValue<FitSint16>§max_neg_vertical_speed: FitFieldAdjustedValue<FitSint16>§time_in_hr_zone: FitFieldAdjustedValue<FitUint32>§time_in_speed_zone: FitFieldAdjustedValue<FitUint32>§time_in_cadence_zone: FitFieldAdjustedValue<FitUint32>§time_in_power_zone: FitFieldAdjustedValue<FitUint32>§repetition_num: FitFieldBasicValue<FitUint16>§min_altitude: FitFieldAdjustedValue<FitUint16>§min_heart_rate: FitFieldBasicValue<FitUint8>§active_time: FitFieldAdjustedValue<FitUint32>§wkt_step_index: FitFieldBasicValue<FitFieldMessageIndex>§sport_event: FitFieldBasicValue<FitFieldSportEvent>§avg_left_torque_effectiveness: FitFieldAdjustedValue<FitUint8>§avg_right_torque_effectiveness: FitFieldAdjustedValue<FitUint8>§avg_left_pedal_smoothness: FitFieldAdjustedValue<FitUint8>§avg_right_pedal_smoothness: FitFieldAdjustedValue<FitUint8>§avg_combined_pedal_smoothness: FitFieldAdjustedValue<FitUint8>§status: FitFieldBasicValue<FitFieldSegmentLapStatus>§uuid: FitFieldBasicValue<FitString>§avg_fractional_cadence: FitFieldAdjustedValue<FitUint8>§max_fractional_cadence: FitFieldAdjustedValue<FitUint8>§total_fractional_cycles: FitFieldAdjustedValue<FitUint8>§front_gear_shift_count: FitFieldBasicValue<FitUint16>§rear_gear_shift_count: FitFieldBasicValue<FitUint16>§time_standing: FitFieldAdjustedValue<FitUint32>§stand_count: FitFieldBasicValue<FitUint16>§avg_left_pco: FitFieldBasicValue<FitSint8>§avg_right_pco: FitFieldBasicValue<FitSint8>§avg_left_power_phase: FitFieldAdjustedValue<FitUint8>§avg_left_power_phase_peak: FitFieldAdjustedValue<FitUint8>§avg_right_power_phase: FitFieldAdjustedValue<FitUint8>§avg_right_power_phase_peak: FitFieldAdjustedValue<FitUint8>§avg_power_position: FitFieldBasicValue<FitUint16>§max_power_position: FitFieldBasicValue<FitUint16>§avg_cadence_position: FitFieldBasicValue<FitUint8>§max_cadence_position: FitFieldBasicValue<FitUint8>§manufacturer: FitFieldBasicValue<FitFieldManufacturer>§total_grit: FitFieldBasicValue<FitFloat32>§total_flow: FitFieldBasicValue<FitFloat32>§avg_grit: FitFieldBasicValue<FitFloat32>§avg_flow: FitFieldBasicValue<FitFloat32>

Implementations§

Source§

impl FitMessageSegmentLap

Source

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

Source

pub fn new( header: FitRecordHeader, parsing_state: &FitParsingState, ) -> Result<FitMessageSegmentLap>

Trait Implementations§

Source§

impl Debug for FitMessageSegmentLap

Source§

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

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

impl Display for FitMessageSegmentLap

Source§

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

Formats the value using the given formatter. 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<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
Source§

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

Source§

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

The error type produced by a failed conversion.
Source§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T

Source§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
Source§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
Source§

impl<T> ConvUtil for T

Source§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
Source§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
Source§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
Source§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
Source§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<Src> TryFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
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<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

Source§

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

The error type produced by a failed conversion.
Source§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
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<Src> ValueFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
Source§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

Source§

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

The error type produced by a failed conversion.
Source§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.