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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
use super::*;
#[derive(Deserialize, Clone, Debug)]
pub struct Group {
pub id: Integer,
pub name: String,
pub screen_name: String,
pub is_closed: Integer,
pub deactivated: String,
pub is_admin: Option<Integer>,
pub admin_level: Option<Integer>,
pub is_member: Option<Integer>,
pub invited_by: Option<Integer>,
#[serde(rename = "type")]
pub type_: String,
pub photo_50: String,
pub photo_100: String,
pub photo_200: String,
pub activity: Option<String>,
pub age_limits: Option<Integer>,
pub ban_info: Option<BlacklistInfo>,
pub can_create_topic: Option<Integer>,
pub can_message: Option<Integer>,
pub can_post: Option<Integer>,
pub can_see_all_posts: Option<Integer>,
pub can_upload_doc: Option<Integer>,
pub can_upload_video: Option<Integer>,
pub city: Option<geo::City>,
pub contacts: Option<Vec<Contact>>,
pub counters: Option<Counters>,
pub country: Option<geo::Country>,
pub cover: Option<Cover>,
pub crop_photo: Option<photo::Cropped>,
pub description: Option<String>,
pub fixed_post: Option<Integer>,
pub has_photo: Option<Integer>,
pub is_favorite: Option<Integer>,
pub is_hidden_from_feed: Option<Integer>,
pub is_messages_blocked: Option<Integer>,
pub links: Option<Vec<Link>>,
pub main_album_id: Option<Integer>,
pub main_section: Option<Integer>,
pub market: Option<Market>,
pub member_status: Option<Integer>,
pub place: Option<geo::Place>,
pub public_date_label: Option<String>,
pub site: Option<String>,
pub start_date: Option<Integer>,
pub finish_date: Option<Integer>,
pub status: Option<String>,
pub trending: Option<Integer>,
pub verified: Option<Integer>,
pub wall: Option<Integer>,
pub wiki_page: Option<String>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct BlacklistInfo {
pub end_date: Integer,
pub comment: String,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Contact {
pub user_id: Option<Integer>,
pub desc: Option<String>,
pub phone: Option<String>,
pub email: Option<String>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Counters {
pub photos: Option<Integer>,
pub albums: Option<Integer>,
pub audios: Option<Integer>,
pub videos: Option<Integer>,
pub topics: Option<Integer>,
pub docs: Option<Integer>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Cover {
pub enabled: Integer,
pub images: Vec<photo::Image>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Link {
pub id: Integer,
pub url: String,
pub name: String,
pub desc: String,
pub photo_50: String,
pub photo_100: String,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Market {
pub enabled: Integer,
pub price_min: Option<Integer>,
pub price_max: Option<Integer>,
pub main_album_id: Option<Integer>,
pub contact_id: Option<Integer>,
pub currency: Option<link::Price>,
pub currency_text: Option<String>,
}