[][src]Enum fitparser::Value

pub enum Value {
    Timestamp(DateTime<Local>),
    Byte(u8),
    Enum(u8),
    SInt8(i8),
    UInt8(u8),
    SInt16(i16),
    UInt16(u16),
    SInt32(i32),
    UInt32(u32),
    String(String),
    Float32(f32),
    Float64(f64),
    UInt8z(u8),
    UInt16z(u16),
    UInt32z(u32),
    SInt64(i64),
    UInt64(u64),
    UInt64z(u64),
    Array(Vec<Self>),
}

Contains arbitrary data in the defined format.

Variants

Timestamp(DateTime<Local>)

Timestamp field converted to the local timezone

Byte(u8)

Unsigned 8bit integer data

Enum(u8)

Unsigned 8bit integer that gets mapped to a FieldType enum

SInt8(i8)

Signed 8bit integer data

UInt8(u8)

Unsigned 8bit integer data

SInt16(i16)

Signed 16bit integer data

UInt16(u16)

Unsigned 16bit integer data

SInt32(i32)

Signed 32bit integer data

UInt32(u32)

Unsigned 32bit integer data

String(String)

UTF-8 format string data

Float32(f32)

32bit floating point data

Float64(f64)

64bit floating point data

UInt8z(u8)

Unsigned 8bit integer data where the invalid value is 0x0 instead of 0xFF

UInt16z(u16)

Unsigned 16bit integer data where the invalid value is 0x0 instead of 0xFFFF

UInt32z(u32)

Unsigned 16bit integer data where the invalid value is 0x0 instead of 0xFFFFFFFF

SInt64(i64)

Signed 64bit integer data

UInt64(u64)

Unsigned 64bit integer data

UInt64z(u64)

Unsigned 64bit integer data where the invalid value is 0x0 instead of 0xFFFFFFFFFFFFFFFF

Array(Vec<Self>)

Array of Values, while this allows nested arrays and mixed types this is not possible in a properly formatted FIT file

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl Display for Value[src]

impl PartialEq<Value> for Value[src]

impl PartialOrd<Value> for Value[src]

impl Serialize for Value[src]

impl StructuralPartialEq for Value[src]

impl TryInto<f64> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryInto<i64> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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.