Struct oma_fetch::DownloadEntryBuilder
source · pub struct DownloadEntryBuilder { /* private fields */ }Expand description
Builder for DownloadEntry.
Implementations§
source§impl DownloadEntryBuilder
impl DownloadEntryBuilder
pub fn source(&mut self, value: Vec<DownloadSource>) -> &mut Self
pub fn filename(&mut self, value: Arc<String>) -> &mut Self
pub fn dir(&mut self, value: PathBuf) -> &mut Self
pub fn hash<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn allow_resume(&mut self, value: bool) -> &mut Self
pub fn msg<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn extract(&mut self, value: bool) -> &mut Self
sourcepub fn build(&self) -> Result<DownloadEntry, DownloadEntryBuilderError>
pub fn build(&self) -> Result<DownloadEntry, DownloadEntryBuilderError>
Trait Implementations§
source§impl Clone for DownloadEntryBuilder
impl Clone for DownloadEntryBuilder
source§fn clone(&self) -> DownloadEntryBuilder
fn clone(&self) -> DownloadEntryBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for DownloadEntryBuilder
impl Send for DownloadEntryBuilder
impl Sync for DownloadEntryBuilder
impl Unpin for DownloadEntryBuilder
impl UnwindSafe for DownloadEntryBuilder
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