add bandwidthPriority param to torrent-get

This commit is contained in:
TANIGUCHI Takaki 2023-09-11 16:43:20 +09:00 committed by Aleksandr
parent 06b0904681
commit 8e225c8053
2 changed files with 3 additions and 0 deletions

View File

@ -466,6 +466,7 @@ pub struct TorrentAddArgs {
pub enum TorrentGetField {
ActivityDate,
AddedDate,
BandwidthPriority,
DoneDate,
DownloadDir,
EditDate,
@ -513,6 +514,7 @@ impl TorrentGetField {
match self {
TorrentGetField::ActivityDate => "activityDate",
TorrentGetField::AddedDate => "addedDate",
TorrentGetField::BandwidthPriority => "bandwidthPriority",
TorrentGetField::DoneDate => "doneDate",
TorrentGetField::DownloadDir => "downloadDir",
TorrentGetField::EditDate => "editDate",

View File

@ -99,6 +99,7 @@ pub enum ErrorType {
pub struct Torrent {
pub activity_date: Option<i64>,
pub added_date: Option<i64>,
pub bandwidth_priority: Option<i64>,
pub done_date: Option<i64>,
pub download_dir: Option<String>,
pub edit_date: Option<i64>,