pub struct GetTorrentListArg {
pub filter: Option<TorrentFilter>,
pub category: Option<String>,
pub tag: Option<String>,
pub sort: Option<String>,
pub reverse: Option<bool>,
pub limit: Option<u64>,
pub offset: Option<i64>,
pub hashes: Option<String>,
}
Fields§
§filter: Option<TorrentFilter>
Filter torrent list by state. Allowed state filters: all
,
downloading
, seeding
, completed
, paused
, active
, inactive
,
resumed
, stalled
, stalled_uploading
, stalled_downloading
,
errored
category: Option<String>
Get torrents with the given category (empty string means “without category”; no “category” parameter means “any category” <- broken until #11748 is resolved). 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<String>
Sort torrents by given key. They can be sorted using any field of the response’s JSON array (which are documented below) as the sort key.
reverse: Option<bool>
Enable reverse sorting. Defaults to false
limit: Option<u64>
Limit the number of torrents returned
offset: Option<i64>
Set offset (if less than 0, offset from end)
hashes: Option<String>
Filter by hashes. Can contain multiple hashes separated by \|
Implementations§
Source§impl GetTorrentListArg
impl GetTorrentListArg
Sourcepub fn builder() -> GetTorrentListArgBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> GetTorrentListArgBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building GetTorrentListArg
.
On the builder, call .filter(...)
(optional), .category(...)
(optional), .tag(...)
(optional), .sort(...)
(optional), .reverse(...)
(optional), .limit(...)
(optional), .offset(...)
(optional), .hashes(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetTorrentListArg
.
Trait Implementations§
Source§impl Clone for GetTorrentListArg
impl Clone for GetTorrentListArg
Source§fn clone(&self) -> GetTorrentListArg
fn clone(&self) -> GetTorrentListArg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GetTorrentListArg
impl Debug for GetTorrentListArg
Source§impl Default for GetTorrentListArg
impl Default for GetTorrentListArg
Source§fn default() -> GetTorrentListArg
fn default() -> GetTorrentListArg
Source§impl PartialEq for GetTorrentListArg
impl PartialEq for GetTorrentListArg
Source§impl Serialize for GetTorrentListArg
impl Serialize for GetTorrentListArg
impl StructuralPartialEq for GetTorrentListArg
Auto Trait Implementations§
impl Freeze for GetTorrentListArg
impl RefUnwindSafe for GetTorrentListArg
impl Send for GetTorrentListArg
impl Sync for GetTorrentListArg
impl Unpin for GetTorrentListArg
impl UnwindSafe for GetTorrentListArg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.