diff --git a/Cargo.toml b/Cargo.toml index 8e58229..9ca1397 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "transmission-rpc" -version = "0.2.1" +version = "0.2.2" authors = ["red "] edition = "2018" repository = "https://github.com/j0rsa/transmission-rpc" @@ -15,7 +15,7 @@ include = [ ] [dependencies] -reqwest = { version = "0.10.4", features = ["json", "rustls-tls"], default-features = false } +reqwest = { version = "0.10.6", features = ["json", "rustls-tls"], default-features = false } tokio = { version = "0.2", features = ["macros"] } serde = { version = "1.0", features = ["derive"] } rustc-serialize = "0.3.24" diff --git a/src/types/response.rs b/src/types/response.rs index 2341c7d..3bcb061 100644 --- a/src/types/response.rs +++ b/src/types/response.rs @@ -12,7 +12,7 @@ impl RpcResponse { } pub trait RpcResponseArgument {} -#[derive(Deserialize, Debug)] +#[derive(Deserialize, Debug, Clone)] pub struct SessionGet { #[serde(rename="blocklist-enabled")] pub blocklist_enabled: bool, @@ -27,7 +27,7 @@ pub struct SessionGet { } impl RpcResponseArgument for SessionGet{} -#[derive(Deserialize, Debug, RustcEncodable)] +#[derive(Deserialize, Debug, RustcEncodable, Clone)] pub struct Torrent { #[serde(rename="addedDate")] pub added_date: Option, @@ -83,7 +83,7 @@ pub struct Torrents { } impl RpcResponseArgument for Torrents{} -#[derive(Deserialize, Debug, RustcEncodable)] +#[derive(Deserialize, Debug, RustcEncodable, Clone)] pub struct Trackers { pub id: i32, pub announce: String,