Struct torrent_search::TorrentSearchResult [−][src]
pub struct TorrentSearchResult { pub name: String, pub seeders: Result<u32, TorrentSearchError>, pub leeches: Result<u32, TorrentSearchError>, pub magnet: Result<String, TorrentSearchError>, }
Some of the basic information of the torrent
Fields
name: String
The name of the torrent, should be equal to the display name in the magnet url
seeders: Result<u32, TorrentSearchError>
Seeders, of course
leeches: Result<u32, TorrentSearchError>
Leeches, of course
magnet: Result<String, TorrentSearchError>
The magnet url as a string (considered releasing it as a Magnet struct, but decided against it It’s wrapped in a result since the torrent search can work, but accessing a magnet can fail
Trait Implementations
impl Clone for TorrentSearchResult
[src]
impl Clone for TorrentSearchResult
[src]fn clone(&self) -> TorrentSearchResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for TorrentSearchResult
[src]
impl Eq for TorrentSearchResult
[src]impl PartialEq<TorrentSearchResult> for TorrentSearchResult
[src]
impl PartialEq<TorrentSearchResult> for TorrentSearchResult
[src]fn eq(&self, other: &TorrentSearchResult) -> bool
[src]
fn ne(&self, other: &TorrentSearchResult) -> bool
[src]
impl StructuralEq for TorrentSearchResult
[src]
impl StructuralEq for TorrentSearchResult
[src]Auto Trait Implementations
impl RefUnwindSafe for TorrentSearchResult
impl RefUnwindSafe for TorrentSearchResult
impl Send for TorrentSearchResult
impl Send for TorrentSearchResult
impl Sync for TorrentSearchResult
impl Sync for TorrentSearchResult
impl Unpin for TorrentSearchResult
impl Unpin for TorrentSearchResult
impl UnwindSafe for TorrentSearchResult
impl UnwindSafe for TorrentSearchResult
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]