pub struct TorrentListParams {
pub filter: Option<FilterTorrentState>,
pub category: Option<String>,
pub tag: Option<String>,
pub sort: Option<TorrentSort>,
pub reverse: Option<bool>,
pub limit: Option<i32>,
pub offset: Option<i32>,
pub hashes: Option<Vec<String>>,
pub is_private: Option<bool>,
pub include_files: Option<bool>,
pub include_trackers: Option<bool>,
}Expand description
Torrent List/info parameter object
Fields§
§filter: Option<FilterTorrentState>Filter torrent list by state. See FilterTorrentState for the allowed filters.
category: Option<String>Get torrents with the given category (empty string means “without category”; no “category” parameter means “any category”). Remember to URL-encode the category name. For example, My category becomes My%20category
tag: Option<String>Get torrents with the given tag (empty string means “without tag”; no “tag” parameter means “any tag”). Remember to URL-encode the category name. For example, My tag becomes My%20tag
sort: Option<TorrentSort>Sort torrents by given key. They can be sorted using any field of the response’s JSON array (see TorrentSort) as the sort key.
reverse: Option<bool>Enable reverse sorting. Defaults to false if not set
limit: Option<i32>Limit the number of torrents returned
offset: Option<i32>Set offset (if less than 0, offset from end)
hashes: Option<Vec<String>>Filter by hashes.
is_private: Option<bool>Filter by private status.
include_files: Option<bool>Include torrent files in the response.
include_trackers: Option<bool>Include torrent trackers in the response.