Struct torrust_index_backend::models::torrent_file::DbTorrentFile
source · pub struct DbTorrentFile {
pub path: Option<String>,
pub length: i64,
pub md5sum: Option<String>,
}
Fields§
§path: Option<String>
§length: i64
§md5sum: Option<String>
Trait Implementations§
source§impl Clone for DbTorrentFile
impl Clone for DbTorrentFile
source§fn clone(&self) -> DbTorrentFile
fn clone(&self) -> DbTorrentFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DbTorrentFile
impl Debug for DbTorrentFile
source§impl<'de> Deserialize<'de> for DbTorrentFile
impl<'de> Deserialize<'de> for DbTorrentFile
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 DbTorrentFilewhere
&'a str: ColumnIndex<R>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for DbTorrentFilewhere &'a str: ColumnIndex<R>, Option<String>: Decode<'a, R::Database> + Type<R::Database>, i64: Decode<'a, R::Database> + Type<R::Database>,
source§impl PartialEq<DbTorrentFile> for DbTorrentFile
impl PartialEq<DbTorrentFile> for DbTorrentFile
source§fn eq(&self, other: &DbTorrentFile) -> bool
fn eq(&self, other: &DbTorrentFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DbTorrentFile
impl Serialize for DbTorrentFile
impl Eq for DbTorrentFile
impl StructuralEq for DbTorrentFile
impl StructuralPartialEq for DbTorrentFile
Auto Trait Implementations§
impl RefUnwindSafe for DbTorrentFile
impl Send for DbTorrentFile
impl Sync for DbTorrentFile
impl Unpin for DbTorrentFile
impl UnwindSafe for DbTorrentFile
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.