mastodon_api\models/
extras.rs1use crate::models::{Account, Status};
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Deserialize, Serialize)]
5pub struct Notification {
6 pub id: String,
7 pub r#type: String,
8 pub created_at: String,
9 pub account: Account,
10 pub status: Option<Status>,
11}
12
13#[derive(Debug, Clone, Deserialize, Serialize)]
14pub struct Tag {
15 pub name: String,
16 pub url: String,
17 pub history: Option<Vec<TagHistory>>,
18 pub following: Option<bool>,
19}
20
21#[derive(Debug, Clone, Deserialize, Serialize)]
22pub struct TagHistory {
23 pub day: String,
24 pub uses: String,
25 pub accounts: String,
26}
27
28#[derive(Debug, Clone, Deserialize, Serialize)]
29pub struct Mention {
30 pub id: String,
31 pub username: String,
32 pub url: String,
33 pub acct: String,
34}
35
36#[derive(Debug, Clone, Deserialize, Serialize)]
37pub struct Relationship {
38 pub id: String,
39 pub following: bool,
40 pub followed_by: bool,
41 pub blocking: bool,
42 pub blocked_by: bool,
43 pub muting: bool,
44 pub muting_notifications: bool,
45 pub requested: bool,
46 pub domain_blocking: bool,
47 pub endorsed: bool,
48 pub note: String,
49}