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,
|
||||
SizeWhenDone,
|
||||
Status,
|
||||
TorrentFile,
|
||||
TotalSize,
|
||||
Trackers,
|
||||
UploadRatio,
|
||||
@ -317,6 +318,7 @@ impl TorrentGetField {
|
||||
TorrentGetField::SeedRatioMode => "seedRatioMode",
|
||||
TorrentGetField::SizeWhenDone => "sizeWhenDone",
|
||||
TorrentGetField::Status => "status",
|
||||
TorrentGetField::TorrentFile => "torrentFile",
|
||||
TorrentGetField::TotalSize => "totalSize",
|
||||
TorrentGetField::Trackers => "trackers",
|
||||
TorrentGetField::UploadRatio => "uploadRatio",
|
||||
|
||||
@ -125,6 +125,8 @@ pub struct Torrent {
|
||||
#[serde(rename = "sizeWhenDone")]
|
||||
pub size_when_done: Option<i64>,
|
||||
pub status: Option<i64>,
|
||||
#[serde(rename = "torrentFile")]
|
||||
pub torrent_file: Option<String>,
|
||||
#[serde(rename = "totalSize")]
|
||||
pub total_size: Option<i64>,
|
||||
pub trackers: Option<Vec<Trackers>>,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user