[][src]Enum fitnesstrax_lib::TraxRecord

pub enum TraxRecord {
    Comments(Comments),
    RepDuration(RepDurationRecord),
    SetRep(SetRepRecord),
    Steps(StepRecord),
    TimeDistance(TimeDistanceRecord),
    Weight(WeightRecord),
}

Variants

Comments(Comments)
RepDuration(RepDurationRecord)
SetRep(SetRepRecord)
Steps(StepRecord)
TimeDistance(TimeDistanceRecord)
Weight(WeightRecord)

Methods

impl TraxRecord[src]

pub fn steps(timestamp: DateTimeTz, value: u32) -> TraxRecord[src]

pub fn repduration(
    timestamp: DateTimeTz,
    activity: ActivityType,
    reps: Vec<Second<f64>>,
    comments: Option<String>
) -> TraxRecord
[src]

pub fn setrep(
    timestamp: DateTimeTz,
    activity: ActivityType,
    sets: Vec<u32>,
    comments: Option<String>
) -> Result<TraxRecord>
[src]

pub fn timedistance(
    timestamp: DateTimeTz,
    activity: ActivityType,
    distance: Option<Meter<f64>>,
    duration: Option<Second<f64>>,
    comments: Option<String>
) -> TraxRecord
[src]

pub fn weight(timestamp: DateTimeTz, weight: Kilogram<f64>) -> TraxRecord[src]

Trait Implementations

impl Clone for TraxRecord[src]

impl Debug for TraxRecord[src]

impl<'de> Deserialize<'de> for TraxRecord[src]

impl From<StepRecord> for TraxRecord[src]

impl From<TimeDistanceRecord> for TraxRecord[src]

impl From<WeightRecord> for TraxRecord[src]

impl PartialEq<TraxRecord> for TraxRecord[src]

impl Recordable for TraxRecord[src]

impl Serialize for TraxRecord[src]

impl StructuralPartialEq for TraxRecord[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.