[][src]Struct transmission::torrent::torrentinfo::TorrentInfo

pub struct TorrentInfo {
    pub total_size: u64,
    pub original_name: String,
    pub name: String,
    pub torrent: String,
    pub webseeds: Vec<String>,
    pub comment: String,
    pub creator: String,
    pub files: Vec<TorrentFile>,
    pub pieces: Vec<TorrentPiece>,
    pub trackers: Vec<TrackerInfo>,
    pub date_created: NaiveDateTime,
    pub tracker_count: u32,
    pub webseed_count: u32,
    pub file_count: u32,
    pub piece_size: u32,
    pub piece_count: u32,
    pub hash: [u8; 20],
    pub hash_string: String,
    pub is_private: bool,
    pub is_folder: bool,
}

Fields

total_size: u64

Total download size in bytes

original_name: String

Original name of the torrent

name: String

Name of the torrent

torrent: Stringwebseeds: Vec<String>

Webseeds of the torrent

comment: String

Comment on the torrent

creator: String

The torrent's creator

files: Vec<TorrentFile>

Files of the torrent

pieces: Vec<TorrentPiece>

Pieces of the torrent

This is skipped in Serialization due to it's size. If you want it serialized you will have to do it manually.

trackers: Vec<TrackerInfo>

Trackers of the torrent

date_created: NaiveDateTime

Date the torrent was created

tracker_count: u32

Number of trackers

webseed_count: u32

Number of webseeds

file_count: u32

Number of files

piece_size: u32

Sice of pieces in bytes

piece_count: u32

Number of pieces

hash: [u8; 20]hash_string: String

String hash of the torrent

is_private: boolis_folder: bool

Is it a torrent of a folder?

Trait Implementations

impl From<tr_info> for TorrentInfo[src]

impl Debug for TorrentInfo[src]

impl Serialize for TorrentInfo[src]

impl<'de> Deserialize<'de> for TorrentInfo[src]

Auto Trait Implementations

impl Send for TorrentInfo

impl Sync for TorrentInfo

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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