From ecef036355bf83db37d9d58d943d326472216b73 Mon Sep 17 00:00:00 2001 From: red Date: Tue, 21 Apr 2020 14:47:35 +0200 Subject: [PATCH] Added Tracker info into response --- src/types/response.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types/response.rs b/src/types/response.rs index 2a6a0e1..b1f9e47 100644 --- a/src/types/response.rs +++ b/src/types/response.rs @@ -68,6 +68,7 @@ pub struct Torrent { pub status: Option, #[serde(rename="totalSize")] pub total_size: Option, + pub trackers: Option>, #[serde(rename="uploadRatio")] pub upload_ratio: Option, #[serde(rename="uploadedEver")] @@ -78,4 +79,10 @@ impl RpcResponseArgument for Torrents{} #[derive(Deserialize, Debug, RustcEncodable)] pub struct Torrents { pub torrents: Vec +} + +#[derive(Deserialize, Debug, RustcEncodable)] +pub struct Trackers { + pub id: i32, + pub announce: String, } \ No newline at end of file