mastodon_api\models/
account.rs

1use serde::{Deserialize, Serialize};
2
3/// Represents a user account on Mastodon.
4#[derive(Debug, Clone, Deserialize, Serialize)]
5pub struct Account {
6    /// The local ID of the account.
7    pub id: String,
8    /// The username of the account, not including domain.
9    pub username: String,
10    /// The profile's display name.
11    pub display_name: String,
12    /// The unique identifier of the account, usually `username@domain`.
13    /// For local users, it may just be the username.
14    pub acct: String,
15    /// The URL of the user's profile.
16    pub url: String,
17    /// The number of followers for the account.
18    pub followers_count: u64,
19    /// The number of accounts this user is following.
20    pub following_count: u64,
21    /// The number of statuses (posts) the user has created.
22    pub statuses_count: u64,
23    /// The user's bio (note).
24    pub note: String,
25    /// URL of the user's avatar image.
26    pub avatar: String,
27    /// URL of the user's header image.
28    pub header: String,
29    /// Whether the account is locked and requires follow requests.
30    pub locked: bool,
31    /// Whether the account is a bot.
32    pub bot: bool,
33    /// The time the account was created (ISO 8601).
34    pub created_at: String,
35}