qbit_rs/model/
transfer.rs1#[derive(Debug, Clone, serde::Deserialize, PartialEq, Eq)]
2pub struct TransferInfo {
3 pub dl_info_speed: u64,
5 pub dl_info_data: u64,
7 pub up_info_speed: u64,
9 pub up_info_data: u64,
11 pub dl_rate_limit: u64,
13 pub up_rate_limit: u64,
15 pub dht_nodes: u64,
17 pub connection_status: ConnectionStatus,
19}
20
21#[derive(Debug, Clone, serde::Deserialize, PartialEq, Eq)]
22#[serde(rename_all = "camelCase")]
23pub enum ConnectionStatus {
24 Connected,
25 Disconnected,
26 Firewalled,
27 #[serde(other)]
28 Unknown,
29}