Support torrent labels

This commit is contained in:
Leopith 2022-09-19 10:58:03 +10:00 committed by Aleksandr
parent a20648d1a5
commit a685434b83
2 changed files with 4 additions and 0 deletions

View File

@ -262,6 +262,7 @@ pub enum TorrentGetField {
IsFinished,
IsPrivate,
IsStalled,
Labels,
LeftUntilDone,
MetadataPercentComplete,
Name,
@ -305,6 +306,7 @@ impl TorrentGetField {
TorrentGetField::IsFinished => "isFinished",
TorrentGetField::IsPrivate => "isPrivate",
TorrentGetField::IsStalled => "isStalled",
TorrentGetField::Labels => "labels",
TorrentGetField::LeftUntilDone => "leftUntilDone",
TorrentGetField::MetadataPercentComplete => "metadataPercentComplete",
TorrentGetField::Name => "name",

View File

@ -95,6 +95,8 @@ pub struct Torrent {
pub is_private: Option<bool>,
#[serde(rename = "isStalled")]
pub is_stalled: Option<bool>,
#[serde(rename = "labels")]
pub labels: Option<Vec<String>>,
#[serde(rename = "leftUntilDone")]
pub left_until_done: Option<i64>,
#[serde(rename = "metadataPercentComplete")]