Add torrentFile field

This commit is contained in:
Artem Vorotnikov 2022-10-14 05:19:25 +04:00 committed by Aleksandr
parent fa98488a78
commit cf720e36cd
2 changed files with 4 additions and 0 deletions

View File

@ -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",

View File

@ -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>>,