mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
Support torrent edit date
This commit is contained in:
parent
4a8a351e5b
commit
ced5d5ed37
@ -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",
|
||||
|
||||
@ -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>,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user