Struct qbit_rs::model::TorrentProperty
source · pub struct TorrentProperty {Show 33 fields
pub save_path: Option<String>,
pub creation_date: Option<i64>,
pub piece_size: Option<i64>,
pub comment: Option<String>,
pub total_wasted: Option<i64>,
pub total_uploaded: Option<i64>,
pub total_uploaded_session: Option<i64>,
pub total_downloaded: Option<i64>,
pub total_downloaded_session: Option<i64>,
pub up_limit: Option<i64>,
pub dl_limit: Option<i64>,
pub time_elapsed: Option<i64>,
pub seeding_time: Option<i64>,
pub nb_connections: Option<i64>,
pub nb_connections_limit: Option<i64>,
pub share_ratio: Option<f64>,
pub addition_date: Option<i64>,
pub completion_date: Option<i64>,
pub created_by: Option<String>,
pub dl_speed_avg: Option<i64>,
pub dl_speed: Option<i64>,
pub eta: Option<i64>,
pub last_seen: Option<i64>,
pub peers: Option<i64>,
pub peers_total: Option<i64>,
pub pieces_have: Option<i64>,
pub pieces_num: Option<i64>,
pub reannounce: Option<i64>,
pub seeds: Option<i64>,
pub seeds_total: Option<i64>,
pub total_size: Option<i64>,
pub up_speed_avg: Option<i64>,
pub up_speed: Option<i64>,
}
Fields§
§save_path: Option<String>
Torrent save path
creation_date: Option<i64>
Torrent creation date (Unix timestamp)
piece_size: Option<i64>
Torrent piece size (bytes)
comment: Option<String>
Torrent comment
total_wasted: Option<i64>
Total data wasted for torrent (bytes)
total_uploaded: Option<i64>
Total data uploaded for torrent (bytes)
total_uploaded_session: Option<i64>
Total data uploaded this session (bytes)
total_downloaded: Option<i64>
Total data downloaded for torrent (bytes)
total_downloaded_session: Option<i64>
Total data downloaded this session (bytes)
up_limit: Option<i64>
Torrent upload limit (bytes/s)
dl_limit: Option<i64>
Torrent download limit (bytes/s)
time_elapsed: Option<i64>
Torrent elapsed time (seconds)
seeding_time: Option<i64>
Torrent elapsed time while complete (seconds)
nb_connections: Option<i64>
Torrent connection count
nb_connections_limit: Option<i64>
Torrent connection count limit
Torrent share ratio
addition_date: Option<i64>
When this torrent was added (unix timestamp)
completion_date: Option<i64>
Torrent completion date (unix timestamp)
created_by: Option<String>
Torrent creator
dl_speed_avg: Option<i64>
Torrent average download speed (bytes/second)
dl_speed: Option<i64>
Torrent download speed (bytes/second)
eta: Option<i64>
Torrent ETA (seconds)
last_seen: Option<i64>
Last seen complete date (unix timestamp)
peers: Option<i64>
Number of peers connected to
peers_total: Option<i64>
Number of peers in the swarm
pieces_have: Option<i64>
Number of pieces owned
pieces_num: Option<i64>
Number of pieces of the torrent
reannounce: Option<i64>
Number of seconds until the next announce
seeds: Option<i64>
Number of seeds connected to
seeds_total: Option<i64>
Number of seeds in the swarm
total_size: Option<i64>
Torrent total size (bytes)
up_speed_avg: Option<i64>
Torrent average upload speed (bytes/second)
up_speed: Option<i64>
Torrent upload speed (bytes/second)
Trait Implementations§
source§impl Clone for TorrentProperty
impl Clone for TorrentProperty
source§fn clone(&self) -> TorrentProperty
fn clone(&self) -> TorrentProperty
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TorrentProperty
impl Debug for TorrentProperty
source§impl<'de> Deserialize<'de> for TorrentProperty
impl<'de> Deserialize<'de> for TorrentProperty
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<TorrentProperty> for TorrentProperty
impl PartialEq<TorrentProperty> for TorrentProperty
source§fn eq(&self, other: &TorrentProperty) -> bool
fn eq(&self, other: &TorrentProperty) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TorrentProperty
Auto Trait Implementations§
impl RefUnwindSafe for TorrentProperty
impl Send for TorrentProperty
impl Sync for TorrentProperty
impl Unpin for TorrentProperty
impl UnwindSafe for TorrentProperty
Blanket Implementations§
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> 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) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized, R: 'a,
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized, R: 'a,
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) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized, R: 'a,
self
, then passes self.as_mut()
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)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,
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)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
.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)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
.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)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
.tap_ref_mut()
only in debug builds, and is erased in release
builds.