cobble_core/minecraft/models/file.rs
1use serde::{Deserialize, Serialize};
2
3/// Information about a downloadable file.
4#[derive(Clone, Debug, Deserialize, Serialize)]
5pub struct File {
6 /// ID of the file
7 pub id: Option<String>,
8 /// Path of the file
9 pub path: Option<String>,
10 /// SHA1 of the file
11 pub sha1: String,
12 /// Size of the file
13 pub size: usize,
14 /// Url of the file
15 pub url: String,
16}