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
use super::*;
#[derive(Deserialize, Clone, Debug)]
pub struct Photo {
pub id: Integer,
pub album_id: Integer,
pub owner_id: Integer,
pub user_id: Option<Integer>,
pub text: String,
pub date: Integer,
pub sizes: Vec<Size>,
pub width: Option<Integer>,
pub height: Option<Integer>,
pub post_id: Option<String>,
pub access_key: Option<String>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Size {
pub url: String,
pub width: Option<Integer>,
pub height: Option<Integer>,
#[serde(rename = "type")]
pub type_: String,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Cropped {
pub photo: Photo,
pub crop: Rect,
pub rect: Rect,
}
#[derive(Deserialize, Copy, Clone, Debug)]
pub struct Rect {
pub x: Number,
pub y: Number,
pub x2: Number,
pub y2: Number,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Album {
pub id: Integer,
pub thumb: photo::Photo,
pub owner_id: Integer,
pub title: String,
pub description: String,
pub created: Integer,
pub updated: Integer,
pub size: Integer,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Image {
pub url: String,
pub width: Integer,
pub height: Integer,
}