pub struct FitDataMessage {
pub fields: HashMap<u8, Value>,
pub developer_fields: HashMap<(u8, u8), Value>,
/* private fields */
}Expand description
Stores a vector of raw fields described by the preceding Definition message, a Definition message must come before any Data message. The data here will be transfomed into a FitDataRecord using the information from its defintion message and the MessageInfo struct from the FIT profile
Fields§
§fields: HashMap<u8, Value>Data field mapping of <(dev_data_idx, field_number), Value>
developer_fields: HashMap<(u8, u8), Value>Mutable Data field mapping of <(dev_data_idx, field_number), Value>
Implementations§
Source§impl FitDataMessage
impl FitDataMessage
Sourcepub fn global_message_number(&self) -> u16
pub fn global_message_number(&self) -> u16
Global message number defined in the FIT profile, set by definition message
Sourcepub fn time_offset(&self) -> Option<u8>
pub fn time_offset(&self) -> Option<u8>
Time offset used to generate a full timestamp from a reference time
Sourcepub fn fields(&self) -> &HashMap<u8, Value>
pub fn fields(&self) -> &HashMap<u8, Value>
Data field mapping of <(dev_data_idx, field_number), Value>
Sourcepub fn fields_mut(&mut self) -> &mut HashMap<u8, Value>
pub fn fields_mut(&mut self) -> &mut HashMap<u8, Value>
Mutable Data field mapping of <(dev_data_idx, field_number), Value>
Trait Implementations§
Source§impl Clone for FitDataMessage
impl Clone for FitDataMessage
Source§fn clone(&self) -> FitDataMessage
fn clone(&self) -> FitDataMessage
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FitDataMessage
impl RefUnwindSafe for FitDataMessage
impl Send for FitDataMessage
impl Sync for FitDataMessage
impl Unpin for FitDataMessage
impl UnwindSafe for FitDataMessage
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