Support torrent edit date

This commit is contained in:
Leopith 2022-09-19 10:53:55 +10:00 committed by Aleksandr
parent 4a8a351e5b
commit ced5d5ed37
2 changed files with 4 additions and 1 deletions

View File

@ -245,13 +245,13 @@ impl Default for TorrentAddArgs {
}
}
// https://github.com/transmission/transmission/blob/main/docs/rpc-spec.md
#[derive(Clone, Sequence)]
pub enum TorrentGetField {
ActivityDate,
AddedDate,
DoneDate,
DownloadDir,
EditDate,
Error,
ErrorString,
Eta,
@ -293,6 +293,7 @@ impl TorrentGetField {
TorrentGetField::AddedDate => "addedDate",
TorrentGetField::DoneDate => "doneDate",
TorrentGetField::DownloadDir => "downloadDir",
TorrentGetField::EditDate => "editDate",
TorrentGetField::Error => "error",
TorrentGetField::ErrorString => "errorString",
TorrentGetField::Eta => "eta",

View File

@ -82,6 +82,8 @@ pub struct Torrent {
pub done_date: Option<i64>,
#[serde(rename = "downloadDir")]
pub download_dir: Option<String>,
#[serde(rename = "editDate")]
pub edit_date: Option<i64>,
pub error: Option<i64>,
#[serde(rename = "errorString")]
pub error_string: Option<String>,