Fix #154 - desktop now can upload files properly
This commit is contained in:
parent
bf1a23075f
commit
f2b28ddbe3
1 changed files with 4 additions and 0 deletions
|
|
@ -296,6 +296,7 @@ fn merge_two_optional_streams<T>(
|
||||||
#[derive(Default, Serialize, Deserialize)]
|
#[derive(Default, Serialize, Deserialize)]
|
||||||
pub struct AddTorrentOptions {
|
pub struct AddTorrentOptions {
|
||||||
/// Start in paused state.
|
/// Start in paused state.
|
||||||
|
#[serde(default)]
|
||||||
pub paused: bool,
|
pub paused: bool,
|
||||||
/// A regex to only download files matching it.
|
/// A regex to only download files matching it.
|
||||||
pub only_files_regex: Option<String>,
|
pub only_files_regex: Option<String>,
|
||||||
|
|
@ -304,8 +305,10 @@ pub struct AddTorrentOptions {
|
||||||
pub only_files: Option<Vec<usize>>,
|
pub only_files: Option<Vec<usize>>,
|
||||||
/// Allow writing on top of existing files, including when resuming a torrent.
|
/// Allow writing on top of existing files, including when resuming a torrent.
|
||||||
/// You probably want to set it, however for safety it's not default.
|
/// You probably want to set it, however for safety it's not default.
|
||||||
|
#[serde(default)]
|
||||||
pub overwrite: bool,
|
pub overwrite: bool,
|
||||||
/// Only list the files in the torrent without starting it.
|
/// Only list the files in the torrent without starting it.
|
||||||
|
#[serde(default)]
|
||||||
pub list_only: bool,
|
pub list_only: bool,
|
||||||
/// The output folder for the torrent. If not set, the session's default one will be used.
|
/// The output folder for the torrent. If not set, the session's default one will be used.
|
||||||
pub output_folder: Option<String>,
|
pub output_folder: Option<String>,
|
||||||
|
|
@ -318,6 +321,7 @@ pub struct AddTorrentOptions {
|
||||||
/// Force a refresh interval for polling trackers.
|
/// Force a refresh interval for polling trackers.
|
||||||
pub force_tracker_interval: Option<Duration>,
|
pub force_tracker_interval: Option<Duration>,
|
||||||
|
|
||||||
|
#[serde(default)]
|
||||||
pub disable_trackers: bool,
|
pub disable_trackers: bool,
|
||||||
|
|
||||||
/// Initial peers to start of with.
|
/// Initial peers to start of with.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue