pub struct ListTorrentsQuery {
pub bypass_cache: Option<bool>,
pub offset: Option<u32>,
pub limit: Option<u32>,
}
Expand description
id
param isn’t given because if it is, it will return an Object and not a Vec
Please use TorrentStatusQuery instead
Fields§
§bypass_cache: Option<bool>
Allows you to bypass the cached data, and always get fresh information.
Useful if constantly querying for fresh download stats. Otherwise, we request that you save our database a few calls.
offset: Option<u32>
Determines the offset of items to get from the database.
Default is 0. Optional.
limit: Option<u32>
Determines the number of items to recieve per request.
Default is 1000. Optional.
Trait Implementations§
Source§impl Debug for ListTorrentsQuery
impl Debug for ListTorrentsQuery
Source§impl Default for ListTorrentsQuery
impl Default for ListTorrentsQuery
Source§fn default() -> ListTorrentsQuery
fn default() -> ListTorrentsQuery
Returns the “default value” for a type. Read more
Source§impl NamedType for ListTorrentsQuery
impl NamedType for ListTorrentsQuery
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
Source§impl Serialize for ListTorrentsQuery
impl Serialize for ListTorrentsQuery
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Type for ListTorrentsQuery
impl Type for ListTorrentsQuery
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition
will be put into the type map.impl Flatten for ListTorrentsQuery
Auto Trait Implementations§
impl Freeze for ListTorrentsQuery
impl RefUnwindSafe for ListTorrentsQuery
impl Send for ListTorrentsQuery
impl Sync for ListTorrentsQuery
impl Unpin for ListTorrentsQuery
impl UnwindSafe for ListTorrentsQuery
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
Mutably borrows from an owned value. Read more