Struct torrust_index_backend::models::response::TorrentResponse
source · pub struct TorrentResponse {Show 14 fields
pub torrent_id: i64,
pub uploader: String,
pub info_hash: String,
pub title: String,
pub description: Option<String>,
pub category: Category,
pub upload_date: String,
pub file_size: i64,
pub seeders: i64,
pub leechers: i64,
pub files: Vec<TorrentFile>,
pub trackers: Vec<String>,
pub magnet_link: String,
pub tags: Vec<TorrentTag>,
}
Fields§
§torrent_id: i64
§uploader: String
§info_hash: String
§title: String
§description: Option<String>
§category: Category
§upload_date: String
§file_size: i64
§seeders: i64
§leechers: i64
§files: Vec<TorrentFile>
§trackers: Vec<String>
§magnet_link: String
Implementations§
source§impl TorrentResponse
impl TorrentResponse
pub fn from_listing( torrent_listing: TorrentListing, category: Category ) -> TorrentResponse
Trait Implementations§
source§impl Debug for TorrentResponse
impl Debug for TorrentResponse
source§impl<'de> Deserialize<'de> for TorrentResponse
impl<'de> Deserialize<'de> for TorrentResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a, R: Row> FromRow<'a, R> for TorrentResponsewhere
&'a str: ColumnIndex<R>,
i64: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Category: Decode<'a, R::Database> + Type<R::Database>,
Vec<TorrentFile>: Decode<'a, R::Database> + Type<R::Database>,
Vec<String>: Decode<'a, R::Database> + Type<R::Database>,
Vec<TorrentTag>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for TorrentResponsewhere &'a str: ColumnIndex<R>, i64: Decode<'a, R::Database> + Type<R::Database>, String: Decode<'a, R::Database> + Type<R::Database>, Option<String>: Decode<'a, R::Database> + Type<R::Database>, Category: Decode<'a, R::Database> + Type<R::Database>, Vec<TorrentFile>: Decode<'a, R::Database> + Type<R::Database>, Vec<String>: Decode<'a, R::Database> + Type<R::Database>, Vec<TorrentTag>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl RefUnwindSafe for TorrentResponse
impl Send for TorrentResponse
impl Sync for TorrentResponse
impl Unpin for TorrentResponse
impl UnwindSafe for TorrentResponse
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