pub struct TorrentInfoQuery {
pub hash: String,
pub timeout: Option<u32>,
}
Fields§
§hash: String
Hash of the torrent you want to get info for. This is required.
timeout: Option<u32>
The amount of time you want TorBox to search for the torrent on the Bittorrent network.
If the number of seeders is low or even zero, this value may be helpful to move up.
Default is 10. Optional.
Trait Implementations§
Source§impl Debug for TorrentInfoQuery
impl Debug for TorrentInfoQuery
Source§impl NamedType for TorrentInfoQuery
impl NamedType for TorrentInfoQuery
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 TorrentInfoQuery
impl Serialize for TorrentInfoQuery
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 TorrentInfoQuery
impl Type for TorrentInfoQuery
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 TorrentInfoQuery
Auto Trait Implementations§
impl Freeze for TorrentInfoQuery
impl RefUnwindSafe for TorrentInfoQuery
impl Send for TorrentInfoQuery
impl Sync for TorrentInfoQuery
impl Unpin for TorrentInfoQuery
impl UnwindSafe for TorrentInfoQuery
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