[][src]Struct qbittorrent::queries::TorrentDownload

pub struct TorrentDownload { /* fields omitted */ }

Metadata for downloading magnet links and torrent files

NOTE: You must include either a urls field or torrents field

urls string URLs separated with newlines torrents raw Raw data of torrent file. torrents can be presented multiple times. savepath optional string Download folder cookie optional string Cookie sent to download the .torrent file category optional string Category for the torrent skip_checking optional string Skip hash checking. Possible values are true, false (default) paused optional string Add torrents in the paused state. Possible values are true, false (default) root_folder optional string Create the root folder. Possible values are true, false, unset (default) rename optional string Rename torrent upLimit optional integer Set torrent upload speed limit. Unit in bytes/second dlLimit optional integer Set torrent download speed limit. Unit in bytes/second autoTMM optional bool Whether Automatic Torrent Management should be used sequentialDownload optional string Enable sequential download. Possible values are true, false (default) firstLastPiecePrio optional string Prioritize download first last piece. Possible values are true, false (default)

Methods

impl TorrentDownload[src]

pub async fn download<'_, '_>(&'_ self, api: &'_ Api) -> Result<(), Error>[src]

Trait Implementations

impl Clone for TorrentDownload[src]

impl Debug for TorrentDownload[src]

impl Default for TorrentDownload[src]

impl<'de> Deserialize<'de> for TorrentDownload[src]

impl Serialize for TorrentDownload[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.