mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
added Clone to response
This commit is contained in:
parent
57b741d5d1
commit
06e1c1a87d
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "transmission-rpc"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
authors = ["red <red.avtovo@gmail.com>"]
|
||||
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"
|
||||
|
||||
@ -12,7 +12,7 @@ impl<T: RpcResponseArgument> RpcResponse<T> {
|
||||
}
|
||||
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<i64>,
|
||||
@ -83,7 +83,7 @@ pub struct Torrents<T> {
|
||||
}
|
||||
impl RpcResponseArgument for Torrents<Torrent>{}
|
||||
|
||||
#[derive(Deserialize, Debug, RustcEncodable)]
|
||||
#[derive(Deserialize, Debug, RustcEncodable, Clone)]
|
||||
pub struct Trackers {
|
||||
pub id: i32,
|
||||
pub announce: String,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user