Struct fit_file::fit_file::FitWorkoutMsg
source · pub struct FitWorkoutMsg {
pub message_index: Option<u16>,
pub sport: Option<u8>,
pub capabilities: Option<u32>,
pub num_valid_steps: Option<u16>,
pub workout_name: Option<String>,
pub sub_sport: Option<u8>,
pub pool_length: Option<u16>,
pub pool_length_unit: Option<u8>,
}
Fields§
§message_index: Option<u16>
§sport: Option<u8>
enum with values defined in constants FIT_SPORT_*
capabilities: Option<u32>
bitmask with flags defined in constants WORKOUT_CAPABILITIES_*
num_valid_steps: Option<u16>
number of workout steps included in the file
workout_name: Option<String>
nul-terminated string with the workout name
sub_sport: Option<u8>
enum with values defined in constants FIT_SUB_SPORT_*
pool_length: Option<u16>
pool length measured in meters
pool_length_unit: Option<u8>
pool length display unit
enum with values defined in constants DISPLAY_MEASURE_*
Implementations§
source§impl FitWorkoutMsg
impl FitWorkoutMsg
pub fn new(fields: Vec<FitFieldValue>) -> FitWorkoutMsg
Trait Implementations§
source§impl Clone for FitWorkoutMsg
impl Clone for FitWorkoutMsg
source§fn clone(&self) -> FitWorkoutMsg
fn clone(&self) -> FitWorkoutMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FitWorkoutMsg
impl Debug for FitWorkoutMsg
source§impl PartialEq for FitWorkoutMsg
impl PartialEq for FitWorkoutMsg
source§fn eq(&self, other: &FitWorkoutMsg) -> bool
fn eq(&self, other: &FitWorkoutMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FitWorkoutMsg
Auto Trait Implementations§
impl RefUnwindSafe for FitWorkoutMsg
impl Send for FitWorkoutMsg
impl Sync for FitWorkoutMsg
impl Unpin for FitWorkoutMsg
impl UnwindSafe for FitWorkoutMsg
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more