From 4c907b940e6a4eaeee0c92581b62173d918b054a Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 19 Jun 2022 23:46:27 -0400 Subject: [PATCH] Make all fields for `TorrentUpload` public --- src/torrent.rs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/torrent.rs b/src/torrent.rs index 18a4fd7..09b99cd 100644 --- a/src/torrent.rs +++ b/src/torrent.rs @@ -279,56 +279,56 @@ pub struct TorrentUpload { /// URL(s) of the torrent files. When specifying `http` or `https` URLs, they /// don't always get downloaded by qbittorrent. The best way to verify if it was added /// to the client is to check the torrent list after the request. - urls: Vec, // NOTE: Separated by new lines + pub urls: Vec, // NOTE: Separated by new lines /// Binary data of the torrents that are being added. /// Torrent file data that is being added. (Name, Bytes) - torrents: Vec<(String, Vec)>, + pub torrents: Vec<(String, Vec)>, /// Download folder - save_path: Option, // NOTE: Rename to `savepath` for (de)serialization + pub save_path: Option, // NOTE: Rename to `savepath` for (de)serialization /// Cookie sent to download the .torrent file - cookie: Option, + pub cookie: Option, /// Category for the torrent - category: Option, + pub category: Option, /// Tags for the torrent - tags: Option>, // NOTE: Split by commas + pub tags: Option>, // NOTE: Split by commas /// Skip hash checking. - skip_hash_check: Option, // NOTE: Convert to string and rename to `skip_hash_check` for (de)serialization + pub skip_hash_check: Option, // NOTE: Convert to string and rename to `skip_hash_check` for (de)serialization /// Add torrents in the paused state. - paused: Option, + pub paused: Option, /// Create the root folder. - root_folder: Option, // NOTE: Convert to string for (de)serialization + pub root_folder: Option, // NOTE: Convert to string for (de)serialization /// Rename torrent - rename: Option, + pub rename: Option, /// Set torrent upload speed limit. Unit in bytes/second - upload_limit: Option, // NOTE: Rename to `upLimit` for (de)serialization + pub upload_limit: Option, // NOTE: Rename to `upLimit` for (de)serialization /// Set torrent download speed limit. Unit in bytes/second - download_limit: Option, // NOTE: Rename to `upLimit` for (de)serialization + pub download_limit: Option, // NOTE: Rename to `upLimit` for (de)serialization /// Set torrent share ratio limit - ratio_limit: Option, // NOTE: Rename to `ratioLimit` for (de)serialization + pub ratio_limit: Option, // NOTE: Rename to `ratioLimit` for (de)serialization /// Set torrent seeding time limit. Unit in seconds - seeding_time_limit: Option, // NOTE: Rename to `seedingTimeLimit` for (de)serialization + pub seeding_time_limit: Option, // NOTE: Rename to `seedingTimeLimit` for (de)serialization /// Whether Automatic Torrent Management should be used - auto_tmm: Option, // NOTE: Rename to `autoTMM` for (de)serialization + pub auto_tmm: Option, // NOTE: Rename to `autoTMM` for (de)serialization /// Enable sequential download. Possible values are true, false (default) - sequential_download: Option, // NOTE: Rename to `sequentialDownload` and convert to string for (de)serialization + pub sequential_download: Option, // NOTE: Rename to `sequentialDownload` and convert to string for (de)serialization /// Prioritize download first last piece. Possible values are true, false (default) - first_last_piece_prio: Option, // NOTE: Rename to `firstLastPiecePrio` and convert to string for (de)serialization + pub first_last_piece_prio: Option, // NOTE: Rename to `firstLastPiecePrio` and convert to string for (de)serialization } #[derive(Debug, Default)]