mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
Support torrent labels
This commit is contained in:
parent
a20648d1a5
commit
a685434b83
@ -262,6 +262,7 @@ pub enum TorrentGetField {
|
|||||||
IsFinished,
|
IsFinished,
|
||||||
IsPrivate,
|
IsPrivate,
|
||||||
IsStalled,
|
IsStalled,
|
||||||
|
Labels,
|
||||||
LeftUntilDone,
|
LeftUntilDone,
|
||||||
MetadataPercentComplete,
|
MetadataPercentComplete,
|
||||||
Name,
|
Name,
|
||||||
@ -305,6 +306,7 @@ impl TorrentGetField {
|
|||||||
TorrentGetField::IsFinished => "isFinished",
|
TorrentGetField::IsFinished => "isFinished",
|
||||||
TorrentGetField::IsPrivate => "isPrivate",
|
TorrentGetField::IsPrivate => "isPrivate",
|
||||||
TorrentGetField::IsStalled => "isStalled",
|
TorrentGetField::IsStalled => "isStalled",
|
||||||
|
TorrentGetField::Labels => "labels",
|
||||||
TorrentGetField::LeftUntilDone => "leftUntilDone",
|
TorrentGetField::LeftUntilDone => "leftUntilDone",
|
||||||
TorrentGetField::MetadataPercentComplete => "metadataPercentComplete",
|
TorrentGetField::MetadataPercentComplete => "metadataPercentComplete",
|
||||||
TorrentGetField::Name => "name",
|
TorrentGetField::Name => "name",
|
||||||
|
|||||||
@ -95,6 +95,8 @@ pub struct Torrent {
|
|||||||
pub is_private: Option<bool>,
|
pub is_private: Option<bool>,
|
||||||
#[serde(rename = "isStalled")]
|
#[serde(rename = "isStalled")]
|
||||||
pub is_stalled: Option<bool>,
|
pub is_stalled: Option<bool>,
|
||||||
|
#[serde(rename = "labels")]
|
||||||
|
pub labels: Option<Vec<String>>,
|
||||||
#[serde(rename = "leftUntilDone")]
|
#[serde(rename = "leftUntilDone")]
|
||||||
pub left_until_done: Option<i64>,
|
pub left_until_done: Option<i64>,
|
||||||
#[serde(rename = "metadataPercentComplete")]
|
#[serde(rename = "metadataPercentComplete")]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user