pub struct FitLengthMsg {
Show 18 fields pub opponent_score: Option<u16>, pub stroke_count: Option<u16>, pub zone_count: Option<u16>, pub length_type: Option<u8>, pub total_elapsed_time: Option<u32>, pub player_score: Option<u16>, pub timestamp: Option<u32>, pub swim_stroke: Option<u8>, pub total_timer_time: Option<u32>, pub total_calories: Option<u16>, pub start_time: Option<u32>, pub message_index: Option<u16>, pub event: Option<u8>, pub total_strokes: Option<u16>, pub event_type: Option<u8>, pub avg_swimming_cadence: Option<u8>, pub event_group: Option<u8>, pub avg_speed: Option<u16>,
}

Fields§

§opponent_score: Option<u16>§stroke_count: Option<u16>§zone_count: Option<u16>§length_type: Option<u8>§total_elapsed_time: Option<u32>§player_score: Option<u16>§timestamp: Option<u32>§swim_stroke: Option<u8>§total_timer_time: Option<u32>§total_calories: Option<u16>§start_time: Option<u32>§message_index: Option<u16>§event: Option<u8>§total_strokes: Option<u16>§event_type: Option<u8>§avg_swimming_cadence: Option<u8>§event_group: Option<u8>§avg_speed: Option<u16>

Implementations§

source§

impl FitLengthMsg

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.