[][src]Struct fitparse::fittypes::FitMessageBikeProfile

pub struct FitMessageBikeProfile {
    pub raw_bytes: Vec<u8>,
    pub subfield_field_numbers: Vec<u8>,
    pub message_name: &'static str,
    pub message_index: FitFieldBasicValue<FitFieldMessageIndex>,
    pub name: FitFieldBasicValue<FitString>,
    pub sport: FitFieldBasicValue<FitFieldSport>,
    pub sub_sport: FitFieldBasicValue<FitFieldSubSport>,
    pub odometer: FitFieldAdjustedValue<FitUint32>,
    pub bike_spd_ant_id: FitFieldBasicValue<FitUint16z>,
    pub bike_cad_ant_id: FitFieldBasicValue<FitUint16z>,
    pub bike_spdcad_ant_id: FitFieldBasicValue<FitUint16z>,
    pub bike_power_ant_id: FitFieldBasicValue<FitUint16z>,
    pub custom_wheelsize: FitFieldAdjustedValue<FitUint16>,
    pub auto_wheelsize: FitFieldAdjustedValue<FitUint16>,
    pub bike_weight: FitFieldAdjustedValue<FitUint16>,
    pub power_cal_factor: FitFieldAdjustedValue<FitUint16>,
    pub auto_wheel_cal: FitFieldBasicValue<FitBool>,
    pub auto_power_zero: FitFieldBasicValue<FitBool>,
    pub id: FitFieldBasicValue<FitUint8>,
    pub spd_enabled: FitFieldBasicValue<FitBool>,
    pub cad_enabled: FitFieldBasicValue<FitBool>,
    pub spdcad_enabled: FitFieldBasicValue<FitBool>,
    pub power_enabled: FitFieldBasicValue<FitBool>,
    pub crank_length: FitFieldAdjustedValue<FitUint8>,
    pub enabled: FitFieldBasicValue<FitBool>,
    pub bike_spd_ant_id_trans_type: FitFieldBasicValue<FitUint8z>,
    pub bike_cad_ant_id_trans_type: FitFieldBasicValue<FitUint8z>,
    pub bike_spdcad_ant_id_trans_type: FitFieldBasicValue<FitUint8z>,
    pub bike_power_ant_id_trans_type: FitFieldBasicValue<FitUint8z>,
    pub odometer_rollover: FitFieldBasicValue<FitUint8>,
    pub front_gear_num: FitFieldBasicValue<FitUint8z>,
    pub front_gear: FitFieldBasicValue<FitUint8z>,
    pub rear_gear_num: FitFieldBasicValue<FitUint8z>,
    pub rear_gear: FitFieldBasicValue<FitUint8z>,
    pub shimano_di2_enabled: FitFieldBasicValue<FitBool>,
    // some fields omitted
}

Fields

raw_bytes: Vec<u8>subfield_field_numbers: Vec<u8>message_name: &'static strmessage_index: FitFieldBasicValue<FitFieldMessageIndex>name: FitFieldBasicValue<FitString>sport: FitFieldBasicValue<FitFieldSport>sub_sport: FitFieldBasicValue<FitFieldSubSport>odometer: FitFieldAdjustedValue<FitUint32>bike_spd_ant_id: FitFieldBasicValue<FitUint16z>bike_cad_ant_id: FitFieldBasicValue<FitUint16z>bike_spdcad_ant_id: FitFieldBasicValue<FitUint16z>bike_power_ant_id: FitFieldBasicValue<FitUint16z>custom_wheelsize: FitFieldAdjustedValue<FitUint16>auto_wheelsize: FitFieldAdjustedValue<FitUint16>bike_weight: FitFieldAdjustedValue<FitUint16>power_cal_factor: FitFieldAdjustedValue<FitUint16>auto_wheel_cal: FitFieldBasicValue<FitBool>auto_power_zero: FitFieldBasicValue<FitBool>id: FitFieldBasicValue<FitUint8>spd_enabled: FitFieldBasicValue<FitBool>cad_enabled: FitFieldBasicValue<FitBool>spdcad_enabled: FitFieldBasicValue<FitBool>power_enabled: FitFieldBasicValue<FitBool>crank_length: FitFieldAdjustedValue<FitUint8>enabled: FitFieldBasicValue<FitBool>bike_spd_ant_id_trans_type: FitFieldBasicValue<FitUint8z>bike_cad_ant_id_trans_type: FitFieldBasicValue<FitUint8z>bike_spdcad_ant_id_trans_type: FitFieldBasicValue<FitUint8z>bike_power_ant_id_trans_type: FitFieldBasicValue<FitUint8z>odometer_rollover: FitFieldBasicValue<FitUint8>front_gear_num: FitFieldBasicValue<FitUint8z>front_gear: FitFieldBasicValue<FitUint8z>rear_gear_num: FitFieldBasicValue<FitUint8z>rear_gear: FitFieldBasicValue<FitUint8z>shimano_di2_enabled: FitFieldBasicValue<FitBool>

Implementations

impl FitMessageBikeProfile[src]

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

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

Trait Implementations

impl Debug for FitMessageBikeProfile[src]

impl Display for FitMessageBikeProfile[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.