Added documentation for Timestamp

This commit is contained in:
DylanCa 2024-01-13 12:37:04 +01:00
parent fa6dd82314
commit 3312b53a0a

View file

@ -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")]