mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
Support torrent is private
This commit is contained in:
parent
ced5d5ed37
commit
a20648d1a5
@ -260,6 +260,7 @@ pub enum TorrentGetField {
|
||||
HashString,
|
||||
Id,
|
||||
IsFinished,
|
||||
IsPrivate,
|
||||
IsStalled,
|
||||
LeftUntilDone,
|
||||
MetadataPercentComplete,
|
||||
@ -302,6 +303,7 @@ impl TorrentGetField {
|
||||
TorrentGetField::HashString => "hashString",
|
||||
TorrentGetField::Id => "id",
|
||||
TorrentGetField::IsFinished => "isFinished",
|
||||
TorrentGetField::IsPrivate => "isPrivate",
|
||||
TorrentGetField::IsStalled => "isStalled",
|
||||
TorrentGetField::LeftUntilDone => "leftUntilDone",
|
||||
TorrentGetField::MetadataPercentComplete => "metadataPercentComplete",
|
||||
|
||||
@ -91,6 +91,8 @@ pub struct Torrent {
|
||||
pub id: Option<i64>,
|
||||
#[serde(rename = "isFinished")]
|
||||
pub is_finished: Option<bool>,
|
||||
#[serde(rename = "isPrivate")]
|
||||
pub is_private: Option<bool>,
|
||||
#[serde(rename = "isStalled")]
|
||||
pub is_stalled: Option<bool>,
|
||||
#[serde(rename = "leftUntilDone")]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user