pub struct StepRecord {
pub steps: u32,
/* private fields */
}Fields§
§steps: u32Implementations§
Source§impl StepRecord
impl StepRecord
pub fn new(date: DateTimeTz, steps: u32) -> StepRecord
Trait Implementations§
Source§impl Clone for StepRecord
impl Clone for StepRecord
Source§fn clone(&self) -> StepRecord
fn clone(&self) -> StepRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepRecord
impl Debug for StepRecord
Source§impl<'de> Deserialize<'de> for StepRecord
impl<'de> Deserialize<'de> for StepRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<StepRecord> for TraxRecord
impl From<StepRecord> for TraxRecord
Source§fn from(r: StepRecord) -> TraxRecord
fn from(r: StepRecord) -> TraxRecord
Converts to this type from the input type.
Source§impl PartialEq for StepRecord
impl PartialEq for StepRecord
Source§impl Recordable for StepRecord
impl Recordable for StepRecord
Source§fn timestamp(&self) -> DateTimeTz
fn timestamp(&self) -> DateTimeTz
The timestamp for the record.
A list of string tags that can be used for indexing. This list defined per-type.
Source§impl Serialize for StepRecord
impl Serialize for StepRecord
impl StructuralPartialEq for StepRecord
Auto Trait Implementations§
impl Freeze for StepRecord
impl RefUnwindSafe for StepRecord
impl Send for StepRecord
impl Sync for StepRecord
impl Unpin for StepRecord
impl UnwindSafe for StepRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more