diff options
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, +} |