From 8e225c8053198117991e8f43d9cf55a8bb0af5e6 Mon Sep 17 00:00:00 2001 From: TANIGUCHI Takaki Date: Mon, 11 Sep 2023 16:43:20 +0900 Subject: [PATCH] add bandwidthPriority param to torrent-get --- src/types/request.rs | 2 ++ src/types/response.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/types/request.rs b/src/types/request.rs index 061735e..329aaa4 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -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", diff --git a/src/types/response.rs b/src/types/response.rs index b8b766c..36a9c9d 100644 --- a/src/types/response.rs +++ b/src/types/response.rs @@ -99,6 +99,7 @@ pub enum ErrorType { pub struct Torrent { pub activity_date: Option, pub added_date: Option, + pub bandwidth_priority: Option, pub done_date: Option, pub download_dir: Option, pub edit_date: Option,