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
pub mod events;
pub mod system;
use serde::Deserialize;
use std::collections::HashMap;
type FileName = String;
type DeviceID = String;
type FolderName = String;
type Folder = HashMap<FileName, File>;
#[derive(Debug, Deserialize)]
#[serde(rename_all(deserialize = "camelCase"))]
pub struct File {
pub total: u64,
pub pulling: u64,
pub copied_from_origin: u64,
pub reused: u64,
pub copied_from_elsewhere: u64,
pub pulled: u64,
pub bytes_total: u64,
pub bytes_done: u64,
}