1use serde::Serialize;
2
3#[derive(Debug, Serialize)]
4pub struct Tweet {
5 pub id: u128,
6 pub id_str: String,
7 pub created_at: String,
8 pub created_at_ts: i64,
9 pub user: User,
10 pub full_text: String,
11 pub images: Vec<String>,
12 pub video: Option<Video>,
13 pub links: Vec<String>,
14 pub retweet: bool,
15 pub reply: bool,
16 pub quote: bool,
17 pub pinned: bool,
18 pub stats: Stats,
19}
20
21#[derive(Debug, Serialize)]
22pub struct User {
23 pub full_name: String,
24 pub screen_name: String,
25}
26
27#[derive(Debug, Serialize)]
28pub struct Video {
29 pub poster: String,
30 pub url: String,
31}
32
33#[derive(Debug, Serialize)]
34pub struct Stats {
35 pub comment: u64,
36 pub retweet: u64,
37 pub quote: u64,
38 pub heart: u64,
39}