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
33
34
35
36
37
38
39
40
41
42
43
44
45
use super::account::Account;
#[derive(Debug, Clone, Deserialize, PartialEq)]
pub struct Instance {
pub uri: String,
pub title: String,
pub description: String,
pub email: String,
pub version: String,
pub urls: Option<StreamingApi>,
pub stats: Option<Stats>,
pub thumbnail: Option<String>,
pub languages: Option<Vec<String>>,
pub contact_account: Option<Account>,
pub max_toot_chars: Option<u32>,
}
#[derive(Debug, Clone, Deserialize, PartialEq)]
pub struct StreamingApi {
pub streaming_api: String,
}
#[derive(Debug, Clone, Copy, Deserialize, PartialEq)]
pub struct Stats {
user_count: u64,
status_count: u64,
domain_count: u64,
}