pub struct DownloadFile {
pub url: Prop<Url>,
pub fname: Prop<PathBuf>,
}
Expand description
Downloads a file
Fields§
§url: Prop<Url>
The url to download from
fname: Prop<PathBuf>
The file name to download into
Trait Implementations§
Source§impl Clone for DownloadFile
impl Clone for DownloadFile
Source§fn clone(&self) -> DownloadFile
fn clone(&self) -> DownloadFile
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 moreSource§impl CreateTask for DownloadFile
impl CreateTask for DownloadFile
Source§fn new(using_id: &TaskId, project: &Project) -> ProjectResult<Self>
fn new(using_id: &TaskId, project: &Project) -> ProjectResult<Self>
Creates a new task. The using_id is the id of the task that’s being created.
Source§fn description() -> String
fn description() -> String
The default description for a Task
Source§fn options_declarations() -> Option<OptionDeclarations>
fn options_declarations() -> Option<OptionDeclarations>
Gets an optional flags for this task. Read more
Source§fn try_set_from_decoder(
&mut self,
_decoder: &OptionsDecoder<'_>,
) -> Result<(), PayloadError<ProjectError>>
fn try_set_from_decoder( &mut self, _decoder: &OptionsDecoder<'_>, ) -> Result<(), PayloadError<ProjectError>>
Try to get values from a decoder. Read more
Source§impl Debug for DownloadFile
impl Debug for DownloadFile
Source§impl InitializeTask for DownloadFile
impl InitializeTask for DownloadFile
Source§fn initialize(task: &mut Executable<Self>, project: &Project) -> ProjectResult
fn initialize(task: &mut Executable<Self>, project: &Project) -> ProjectResult
Initialize tasks
Source§impl Task for DownloadFile
impl Task for DownloadFile
Source§fn task_action(task: &mut Executable<Self>, _project: &Project) -> BuildResult
fn task_action(task: &mut Executable<Self>, _project: &Project) -> BuildResult
The action that the task performs
Source§impl TaskIO for DownloadFile
impl TaskIO for DownloadFile
Source§fn configure_io(task: &mut Executable<Self>) -> ProjectResult
fn configure_io(task: &mut Executable<Self>) -> ProjectResult
During the initialization of the task, configures the inputs and outputs of the task.
Source§fn recover_outputs(&mut self, output: &Output) -> ProjectResult
fn recover_outputs(&mut self, output: &Output) -> ProjectResult
Recovers outputs from previous run if up-to-date
Source§impl UpToDate for DownloadFile
impl UpToDate for DownloadFile
Source§fn up_to_date(&self) -> bool
fn up_to_date(&self) -> bool
Whether this value is up to date. Read more
Auto Trait Implementations§
impl Freeze for DownloadFile
impl RefUnwindSafe for DownloadFile
impl Send for DownloadFile
impl Sync for DownloadFile
impl Unpin for DownloadFile
impl UnwindSafe for DownloadFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more