[−][src]Enum fitnesstrax_lib::TraxRecord
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]
timestamp: DateTimeTz,
activity: ActivityType,
reps: Vec<Second<f64>>,
comments: Option<String>
) -> TraxRecord
pub fn setrep(
timestamp: DateTimeTz,
activity: ActivityType,
sets: Vec<u32>,
comments: Option<String>
) -> Result<TraxRecord>
[src]
timestamp: DateTimeTz,
activity: ActivityType,
sets: Vec<u32>,
comments: Option<String>
) -> Result<TraxRecord>
pub fn timedistance(
timestamp: DateTimeTz,
activity: ActivityType,
distance: Option<Meter<f64>>,
duration: Option<Second<f64>>,
comments: Option<String>
) -> TraxRecord
[src]
timestamp: DateTimeTz,
activity: ActivityType,
distance: Option<Meter<f64>>,
duration: Option<Second<f64>>,
comments: Option<String>
) -> TraxRecord
pub fn weight(timestamp: DateTimeTz, weight: Kilogram<f64>) -> TraxRecord
[src]
Trait Implementations
impl Clone for TraxRecord
[src]
fn clone(&self) -> TraxRecord
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TraxRecord
[src]
impl<'de> Deserialize<'de> for TraxRecord
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<StepRecord> for TraxRecord
[src]
fn from(r: StepRecord) -> TraxRecord
[src]
impl From<TimeDistanceRecord> for TraxRecord
[src]
fn from(r: TimeDistanceRecord) -> TraxRecord
[src]
impl From<WeightRecord> for TraxRecord
[src]
fn from(r: WeightRecord) -> TraxRecord
[src]
impl PartialEq<TraxRecord> for TraxRecord
[src]
fn eq(&self, other: &TraxRecord) -> bool
[src]
fn ne(&self, other: &TraxRecord) -> bool
[src]
impl Recordable for TraxRecord
[src]
impl Serialize for TraxRecord
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for TraxRecord
[src]
Auto Trait Implementations
impl RefUnwindSafe for TraxRecord
impl Send for TraxRecord
impl Sync for TraxRecord
impl Unpin for TraxRecord
impl UnwindSafe for TraxRecord
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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, 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>,