diff options
author | Paul Woolcock <paul@woolcock.us> | 2020-10-07 05:44:32 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2020-10-07 09:06:13 -0400 |
commit | 5a8dd3fd8411f763f26dff90ac2e92422785500a (patch) | |
tree | aa103ad42b9211f768fd03f50216755267dd306d /src/entities/activity.rs | |
parent | 6ed05e7d2357c01e2545f36316fc9262409483b6 (diff) |
Add some new entities & update some existing ones
Diffstat (limited to 'src/entities/activity.rs')
-rw-r--r-- | src/entities/activity.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/entities/activity.rs b/src/entities/activity.rs new file mode 100644 index 0000000..0384bab --- /dev/null +++ b/src/entities/activity.rs @@ -0,0 +1,14 @@ +use serde::{Deserialize, Serialize}; + +/// Represents a weekly bucket of instance activity. +#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] +pub struct Activity { + /// Midnight at the first day of the week. + pub week: String, + /// Statuses created since the week began. + pub statuses: String, + /// User logins since the week began. + pub logins: String, + /// User registrations since the week began. + pub registrations: String, +} |