mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
Add torrentFile field
This commit is contained in:
parent
fa98488a78
commit
cf720e36cd
@ -272,6 +272,7 @@ pub enum TorrentGetField {
|
|||||||
SeedRatioMode,
|
SeedRatioMode,
|
||||||
SizeWhenDone,
|
SizeWhenDone,
|
||||||
Status,
|
Status,
|
||||||
|
TorrentFile,
|
||||||
TotalSize,
|
TotalSize,
|
||||||
Trackers,
|
Trackers,
|
||||||
UploadRatio,
|
UploadRatio,
|
||||||
@ -317,6 +318,7 @@ impl TorrentGetField {
|
|||||||
TorrentGetField::SeedRatioMode => "seedRatioMode",
|
TorrentGetField::SeedRatioMode => "seedRatioMode",
|
||||||
TorrentGetField::SizeWhenDone => "sizeWhenDone",
|
TorrentGetField::SizeWhenDone => "sizeWhenDone",
|
||||||
TorrentGetField::Status => "status",
|
TorrentGetField::Status => "status",
|
||||||
|
TorrentGetField::TorrentFile => "torrentFile",
|
||||||
TorrentGetField::TotalSize => "totalSize",
|
TorrentGetField::TotalSize => "totalSize",
|
||||||
TorrentGetField::Trackers => "trackers",
|
TorrentGetField::Trackers => "trackers",
|
||||||
TorrentGetField::UploadRatio => "uploadRatio",
|
TorrentGetField::UploadRatio => "uploadRatio",
|
||||||
|
|||||||
@ -125,6 +125,8 @@ pub struct Torrent {
|
|||||||
#[serde(rename = "sizeWhenDone")]
|
#[serde(rename = "sizeWhenDone")]
|
||||||
pub size_when_done: Option<i64>,
|
pub size_when_done: Option<i64>,
|
||||||
pub status: Option<i64>,
|
pub status: Option<i64>,
|
||||||
|
#[serde(rename = "torrentFile")]
|
||||||
|
pub torrent_file: Option<String>,
|
||||||
#[serde(rename = "totalSize")]
|
#[serde(rename = "totalSize")]
|
||||||
pub total_size: Option<i64>,
|
pub total_size: Option<i64>,
|
||||||
pub trackers: Option<Vec<Trackers>>,
|
pub trackers: Option<Vec<Trackers>>,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user