Fix build

This commit is contained in:
Igor Katson 2024-05-03 18:20:28 +01:00
parent 6218cac317
commit c07ebbac25
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -279,7 +279,9 @@ fn merge_two_optional_streams<T>(
} }
/// Options for adding new torrents to the session. /// Options for adding new torrents to the session.
#[derive(Default)] //
// Serialize/deserialize is for Tauri.
#[derive(Default, Serialize, Deserialize)]
pub struct AddTorrentOptions { pub struct AddTorrentOptions {
/// Start in paused state. /// Start in paused state.
pub paused: bool, pub paused: bool,
@ -312,6 +314,7 @@ pub struct AddTorrentOptions {
/// This is used to restore the session from serialized state. /// This is used to restore the session from serialized state.
pub preferred_id: Option<usize>, pub preferred_id: Option<usize>,
#[serde(skip)]
pub storage_factory: Option<BoxStorageFactory>, pub storage_factory: Option<BoxStorageFactory>,
// If true, will write to disk in separate threads. The downside is additional allocations. // If true, will write to disk in separate threads. The downside is additional allocations.