pixeldrain/model/
file_info.rs

1/// Info about a file
2#[derive(Debug, serde::Deserialize)]
3pub struct FileInfo {
4    /// The id of the file.
5    pub id: String,
6
7    /// The name of the file.
8    pub name: String,
9
10    /// The size of the file.
11    pub size: u64,
12
13    /// The number of views
14    pub views: u64,
15
16    /// The number of downloads.
17    pub downloads: u64,
18
19    /// The sha256 hash of the file.
20    pub hash_sha256: String,
21}