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
use super::*;
use crate::types::file::id::AsFileId;
#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
pub struct Video {
pub file_id: file::Id,
pub width: u32,
pub height: u32,
pub duration: u32,
pub thumb: Option<PhotoSize>,
pub mime_type: Option<String>,
pub file_size: Option<u32>,
}
impl crate::internal::Sealed for Video {}
impl AsFileId for Video {
fn as_file_id(&self) -> file::id::Ref<'_> {
self.file_id.as_ref()
}
}