mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
elefren-fork/src/entities/activity.rs

14 lines
462 B

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,
}