pub struct PinJobsFilterBuilder { /* private fields */ }Expand description
Builder for PinJobsFilter.
Implementations§
Source§impl PinJobsFilterBuilder
impl PinJobsFilterBuilder
Sourcepub fn set_sort<VALUE: Into<SortDirection>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn set_sort<VALUE: Into<SortDirection>>( &mut self, value: VALUE, ) -> &mut Self
Sort the results by the date added to the pinning queue
Sourcepub fn set_status<VALUE: Into<JobStatus>>(&mut self, value: VALUE) -> &mut Self
pub fn set_status<VALUE: Into<JobStatus>>(&mut self, value: VALUE) -> &mut Self
Set a status on the PinJobsFilter
Sourcepub fn set_ipfs_pin_hash<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn set_ipfs_pin_hash<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Set a IPFS pin hash on the PinJobsFilter
Sourcepub fn set_limit<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
pub fn set_limit<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
Set limit on the amount of results per page
Sourcepub fn set_offset<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn set_offset<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Set the record offset for records returned. This is how to retrieve additional pages
Sourcepub fn build(&self) -> Result<PinJobsFilter, PinJobsFilterBuilderError>
pub fn build(&self) -> Result<PinJobsFilter, PinJobsFilterBuilderError>
Trait Implementations§
Source§impl Clone for PinJobsFilterBuilder
impl Clone for PinJobsFilterBuilder
Source§fn clone(&self) -> PinJobsFilterBuilder
fn clone(&self) -> PinJobsFilterBuilder
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 PinJobsFilterBuilder
impl RefUnwindSafe for PinJobsFilterBuilder
impl Send for PinJobsFilterBuilder
impl Sync for PinJobsFilterBuilder
impl Unpin for PinJobsFilterBuilder
impl UnwindSafe for PinJobsFilterBuilder
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