pub struct TorrentRequestBuilder { /* private fields */ }Expand description
Builder for TorrentRequest.
Implementations§
Source§impl TorrentRequestBuilder
impl TorrentRequestBuilder
pub fn filter<VALUE: Into<TorrentFilter>>(&mut self, value: VALUE) -> &mut Self
pub fn category<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sort<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn reverse<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn offset<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn hash<VALUE: Into<Hash>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<TorrentRequest, TorrentRequestBuilderError>
pub fn build(&self) -> Result<TorrentRequest, TorrentRequestBuilderError>
Trait Implementations§
Source§impl Clone for TorrentRequestBuilder
impl Clone for TorrentRequestBuilder
Source§fn clone(&self) -> TorrentRequestBuilder
fn clone(&self) -> TorrentRequestBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TorrentRequestBuilder
impl RefUnwindSafe for TorrentRequestBuilder
impl Send for TorrentRequestBuilder
impl Sync for TorrentRequestBuilder
impl Unpin for TorrentRequestBuilder
impl UnwindSafe for TorrentRequestBuilder
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