From 3312b53a0a073a433195c7ea9ada35ee09b219c2 Mon Sep 17 00:00:00 2001 From: DylanCa Date: Sat, 13 Jan 2024 12:37:04 +0100 Subject: [PATCH] Added documentation for Timestamp --- src/models/activity_data/timestamp.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/activity_data/timestamp.rs b/src/models/activity_data/timestamp.rs index 48f32be..336f1d1 100644 --- a/src/models/activity_data/timestamp.rs +++ b/src/models/activity_data/timestamp.rs @@ -1,5 +1,9 @@ use serde::Serialize; +/// Contains start and end time for an Activity. +/// Must be in Milliseconds since UNIX_EPOCH time. +/// If only Start is set and is in the past, it will display "xx:xx elapsed" +/// Otherwise if End is set, it will display "xx:xx remaining" #[derive(Serialize, Debug)] pub struct Timestamp { #[serde(skip_serializing_if = "Option::is_none")]