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
use types::*;
#[derive(Debug, Serialize, Deserialize)]
pub struct Animation {
pub file_id: String,
pub width: Integer,
pub height: Integer,
pub duration: Integer,
#[serde(skip_serializing_if = "Option::is_none")]
pub thumb: Option<PhotoSize>,
#[serde(skip_serializing_if = "Option::is_none")]
pub file_name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub mime_type: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub file_size: Option<Integer>,
}