Add support for doneDate Torrent field

This commit is contained in:
Andreas Fuchs 2021-12-04 18:51:42 +01:00 committed by Aleksandr
parent 4ac95a6ffa
commit 75574cbdb1
2 changed files with 4 additions and 0 deletions

View File

@ -250,6 +250,7 @@ pub enum TorrentGetField {
Name,
HashString,
Totalsize,
Donedate,
Error,
Errorstring,
Eta,
@ -294,6 +295,7 @@ impl TorrentGetField {
TorrentGetField::Name => "name",
TorrentGetField::HashString => "hashString",
TorrentGetField::Totalsize => "totalSize",
TorrentGetField::Donedate => "doneDate",
TorrentGetField::Error => "error",
TorrentGetField::Errorstring => "errorString",
TorrentGetField::Eta => "eta",

View File

@ -76,6 +76,8 @@ impl RpcResponseArgument for PortTest {}
pub struct Torrent {
#[serde(rename = "addedDate")]
pub added_date: Option<i64>,
#[serde(rename = "doneDate")]
pub done_date: Option<i64>,
#[serde(rename = "downloadDir")]
pub download_dir: Option<String>,
pub error: Option<i64>,