[][src]Struct fitparser::FitDataField

pub struct FitDataField { /* fields omitted */ }

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]

impl Debug for FitDataField[src]

impl Display for FitDataField[src]

impl From<FitDataField> for ValueWithUnits[src]

impl Serialize for FitDataField[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<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.