pub struct Torrent {
Show 55 fields pub id: i32, pub activity_date: i32, pub added_date: i32, pub bandwidth_priority: i32, pub comment: String, pub corrupt_ever: i64, pub creator: String, pub date_created: i32, pub desired_available: i64, pub done_date: i32, pub download_dir: String, pub download_limit: i32, pub download_limited: bool, pub downloaded_ever: i64, pub edit_date: i32, pub error: i32, pub error_string: String, pub eta: i64, pub eta_idle: i64, pub hash_string: String, pub have_unchecked: i64, pub have_valid: i64, pub honors_session_limits: bool, pub is_finished: bool, pub is_private: bool, pub is_stalled: bool, pub left_until_done: i64, pub magnet_link: String, pub manual_announce_time: i32, pub metadata_percent_complete: f32, pub name: String, pub percent_done: f32, pub piece_count: i64, pub piece_size: i64, pub pieces: String, pub primary_mime_type: String, pub queue_position: i32, pub rate_download: i32, pub rate_upload: i32, pub recheck_progress: f32, pub seconds_downloading: i32, pub seconds_seeding: i32, pub seed_idle_limit: i32, pub seed_idle_mode: i32, pub seed_ratio_limit: f32, pub seed_ratio_mode: i32, pub size_when_done: i64, pub start_date: i32, pub status: i32, pub torrent_file: String, pub total_size: i64, pub upload_limit: i32, pub upload_limited: bool, pub upload_ratio: f32, pub uploaded_ever: i64,
}

Fields§

§id: i32§activity_date: i32§added_date: i32§bandwidth_priority: i32§comment: String§corrupt_ever: i64§creator: String§date_created: i32§desired_available: i64§done_date: i32§download_dir: String§download_limit: i32§download_limited: bool§downloaded_ever: i64§edit_date: i32§error: i32§error_string: String§eta: i64§eta_idle: i64§hash_string: String§have_unchecked: i64§have_valid: i64§honors_session_limits: bool§is_finished: bool§is_private: bool§is_stalled: bool§left_until_done: i64§magnet_link: String§manual_announce_time: i32§metadata_percent_complete: f32§name: String§percent_done: f32§piece_count: i64§piece_size: i64§pieces: String§primary_mime_type: String§queue_position: i32§rate_download: i32§rate_upload: i32§recheck_progress: f32§seconds_downloading: i32§seconds_seeding: i32§seed_idle_limit: i32§seed_idle_mode: i32§seed_ratio_limit: f32§seed_ratio_mode: i32§size_when_done: i64§start_date: i32§status: i32§torrent_file: String§total_size: i64§upload_limit: i32§upload_limited: bool§upload_ratio: f32§uploaded_ever: i64

Trait Implementations§

source§

impl Clone for Torrent

source§

fn clone(&self) -> Torrent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Torrent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Torrent

source§

fn default() -> Torrent

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Torrent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Torrent

source§

fn eq(&self, other: &Torrent) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Torrent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,