1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use serde::Serialize;

#[derive(Debug, Serialize)]
pub struct Tweet {
    pub id: u128,
    pub id_str: String,
    pub created_at: String,
    pub created_at_ts: i64,
    pub user: User,
    pub full_text: String,
    pub images: Vec<String>,
    pub links: Vec<String>,
    pub retweet: bool,
    pub reply: bool,
    pub quote: bool,
    pub pinned: bool,
    pub stats: Stats,
}

#[derive(Debug, Serialize)]
pub struct User {
    pub full_name: String,
    pub screen_name: String,
}

#[derive(Debug, Serialize)]
pub struct Stats {
    pub comment: u64,
    pub retweet: u64,
    pub quote: u64,
    pub heart: u64,
}