mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
Added Tracker info into response
This commit is contained in:
parent
0083488ddb
commit
ecef036355
@ -68,6 +68,7 @@ pub struct Torrent {
|
|||||||
pub status: Option<i64>,
|
pub status: Option<i64>,
|
||||||
#[serde(rename="totalSize")]
|
#[serde(rename="totalSize")]
|
||||||
pub total_size: Option<i64>,
|
pub total_size: Option<i64>,
|
||||||
|
pub trackers: Option<Vec<Trackers>>,
|
||||||
#[serde(rename="uploadRatio")]
|
#[serde(rename="uploadRatio")]
|
||||||
pub upload_ratio: Option<f32>,
|
pub upload_ratio: Option<f32>,
|
||||||
#[serde(rename="uploadedEver")]
|
#[serde(rename="uploadedEver")]
|
||||||
@ -78,4 +79,10 @@ impl RpcResponseArgument for Torrents<Torrent>{}
|
|||||||
#[derive(Deserialize, Debug, RustcEncodable)]
|
#[derive(Deserialize, Debug, RustcEncodable)]
|
||||||
pub struct Torrents<T> {
|
pub struct Torrents<T> {
|
||||||
pub torrents: Vec<T>
|
pub torrents: Vec<T>
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize, Debug, RustcEncodable)]
|
||||||
|
pub struct Trackers {
|
||||||
|
pub id: i32,
|
||||||
|
pub announce: String,
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user