Support torrent is private

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

View File

@ -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",

View File

@ -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")]