1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

/// Information about a downloadable file.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct File {
    /// ID of the file
    pub id: Option<String>,
    /// Path of the file
    pub path: Option<String>,
    /// SHA1 of the file
    pub sha1: String,
    /// Size of the file
    pub size: usize,
    /// Url of the file
    pub url: String,
}