Added documentation for Timestamp
This commit is contained in:
parent
fa6dd82314
commit
3312b53a0a
1 changed files with 4 additions and 0 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue