Struct torrust_index_backend::models::torrent_file::TorrentFile
source · pub struct TorrentFile {
pub path: Vec<String>,
pub length: i64,
pub md5sum: Option<String>,
}
Fields§
§path: Vec<String>
§length: i64
§md5sum: Option<String>
Trait Implementations§
source§impl Clone for TorrentFile
impl Clone for TorrentFile
source§fn clone(&self) -> TorrentFile
fn clone(&self) -> TorrentFile
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 TorrentFile
impl Debug for TorrentFile
source§impl<'de> Deserialize<'de> for TorrentFile
impl<'de> Deserialize<'de> for TorrentFile
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 PartialEq<TorrentFile> for TorrentFile
impl PartialEq<TorrentFile> for TorrentFile
source§fn eq(&self, other: &TorrentFile) -> bool
fn eq(&self, other: &TorrentFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TorrentFile
impl Serialize for TorrentFile
impl Eq for TorrentFile
impl StructuralEq for TorrentFile
impl StructuralPartialEq for TorrentFile
Auto Trait Implementations§
impl RefUnwindSafe for TorrentFile
impl Send for TorrentFile
impl Sync for TorrentFile
impl Unpin for TorrentFile
impl UnwindSafe for TorrentFile
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.