pub struct DownloadEntryBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> DownloadEntryBuilder<S>
impl<S: State> DownloadEntryBuilder<S>
Sourcepub fn build(self) -> DownloadEntrywhere
S: IsComplete,
pub fn build(self) -> DownloadEntrywhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn source(
self,
value: Vec<DownloadSource>,
) -> DownloadEntryBuilder<SetSource<S>>where
S::Source: IsUnset,
pub fn source(
self,
value: Vec<DownloadSource>,
) -> DownloadEntryBuilder<SetSource<S>>where
S::Source: IsUnset,
Required.
Sourcepub fn filename(self, value: String) -> DownloadEntryBuilder<SetFilename<S>>where
S::Filename: IsUnset,
pub fn filename(self, value: String) -> DownloadEntryBuilder<SetFilename<S>>where
S::Filename: IsUnset,
Required.
Sourcepub fn dir(self, value: PathBuf) -> DownloadEntryBuilder<SetDir<S>>where
S::Dir: IsUnset,
pub fn dir(self, value: PathBuf) -> DownloadEntryBuilder<SetDir<S>>where
S::Dir: IsUnset,
Required.
Sourcepub fn hash(self, value: Checksum) -> DownloadEntryBuilder<SetHash<S>>where
S::Hash: IsUnset,
pub fn hash(self, value: Checksum) -> DownloadEntryBuilder<SetHash<S>>where
S::Hash: IsUnset,
Sourcepub fn maybe_hash(
self,
value: Option<Checksum>,
) -> DownloadEntryBuilder<SetHash<S>>where
S::Hash: IsUnset,
pub fn maybe_hash(
self,
value: Option<Checksum>,
) -> DownloadEntryBuilder<SetHash<S>>where
S::Hash: IsUnset,
Sourcepub fn allow_resume(
self,
value: bool,
) -> DownloadEntryBuilder<SetAllowResume<S>>where
S::AllowResume: IsUnset,
pub fn allow_resume(
self,
value: bool,
) -> DownloadEntryBuilder<SetAllowResume<S>>where
S::AllowResume: IsUnset,
Required.
Sourcepub fn msg(self, value: Cow<'static, str>) -> DownloadEntryBuilder<SetMsg<S>>where
S::Msg: IsUnset,
pub fn msg(self, value: Cow<'static, str>) -> DownloadEntryBuilder<SetMsg<S>>where
S::Msg: IsUnset,
Sourcepub fn maybe_msg(
self,
value: Option<Cow<'static, str>>,
) -> DownloadEntryBuilder<SetMsg<S>>where
S::Msg: IsUnset,
pub fn maybe_msg(
self,
value: Option<Cow<'static, str>>,
) -> DownloadEntryBuilder<SetMsg<S>>where
S::Msg: IsUnset,
Sourcepub fn file_type(
self,
value: CompressFile,
) -> DownloadEntryBuilder<SetFileType<S>>where
S::FileType: IsUnset,
pub fn file_type(
self,
value: CompressFile,
) -> DownloadEntryBuilder<SetFileType<S>>where
S::FileType: IsUnset,
Sourcepub fn maybe_file_type(
self,
value: Option<CompressFile>,
) -> DownloadEntryBuilder<SetFileType<S>>where
S::FileType: IsUnset,
pub fn maybe_file_type(
self,
value: Option<CompressFile>,
) -> DownloadEntryBuilder<SetFileType<S>>where
S::FileType: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for DownloadEntryBuilder<S>
impl<S> RefUnwindSafe for DownloadEntryBuilder<S>
impl<S> Send for DownloadEntryBuilder<S>
impl<S> Sync for DownloadEntryBuilder<S>
impl<S> Unpin for DownloadEntryBuilder<S>
impl<S> UnwindSafe for DownloadEntryBuilder<S>
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