[−][src]Struct fitparser::FitDataField
Stores a value and it's defined units which are set by the FIT profile during decoding
Implementations
impl FitDataField
[src]
pub fn new(name: String, number: u8, value: Value, units: String) -> Self
[src]
Create a new FitDataField
pub fn name(&self) -> &str
[src]
Return the field name as defined in the FIT profile
pub fn number(&self) -> u8
[src]
Return the field definition number
pub fn value(&self) -> &Value
[src]
Return a reference to the stored value
pub fn units(&self) -> &str
[src]
Return units associated with the value
pub fn into_value(self) -> Value
[src]
Consume the field and return the value
Trait Implementations
impl Clone for FitDataField
[src]
fn clone(&self) -> FitDataField
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FitDataField
[src]
impl Display for FitDataField
[src]
impl From<FitDataField> for ValueWithUnits
[src]
fn from(field: FitDataField) -> Self
[src]
impl Serialize for FitDataField
[src]
Auto Trait Implementations
impl RefUnwindSafe for FitDataField
impl Send for FitDataField
impl Sync for FitDataField
impl Unpin for FitDataField
impl UnwindSafe for FitDataField
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,