pub struct WrapperTask {
pub wrapper_name: Prop<String>,
pub assemble_url: Prop<Url>,
pub assemble_version: Prop<String>,
pub assemble_sha256: Prop<Sha256>,
}
Expand description
Create assemble wrapper files
Fields§
§wrapper_name: Prop<String>
The base name of the generate wrapper file. Appended with .bat for batch file variant
assemble_url: Prop<Url>
The url of the specified assemble distributable
assemble_version: Prop<String>
if a direct url isn’t provided, download from default provider with given version
assemble_sha256: Prop<Sha256>
If provided, compare the downloaded file with a string representing it’s sha256 value. Fails if downloaded file doesn’t match
Trait Implementations§
Source§impl CreateTask for WrapperTask
impl CreateTask for WrapperTask
Source§fn new(
using_id: &TaskId,
_project: &Project,
) -> Result<WrapperTask, PayloadError<ProjectError>>
fn new( using_id: &TaskId, _project: &Project, ) -> Result<WrapperTask, PayloadError<ProjectError>>
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 WrapperTask
impl Debug for WrapperTask
Source§impl InitializeTask for WrapperTask
impl InitializeTask for WrapperTask
Source§fn initialize(
task: &mut Executable<WrapperTask>,
_project: &Project,
) -> Result<(), PayloadError<ProjectError>>
fn initialize( task: &mut Executable<WrapperTask>, _project: &Project, ) -> Result<(), PayloadError<ProjectError>>
Initialize tasks
Source§impl Task for WrapperTask
impl Task for WrapperTask
Source§fn task_action(
task: &mut Executable<WrapperTask>,
project: &Project,
) -> Result<(), PayloadError<BuildException>>
fn task_action( task: &mut Executable<WrapperTask>, project: &Project, ) -> Result<(), PayloadError<BuildException>>
The action that the task performs
Source§impl TaskIO for WrapperTask
impl TaskIO for WrapperTask
Source§fn configure_io(
task: &mut Executable<WrapperTask>,
) -> Result<(), PayloadError<ProjectError>>
fn configure_io( task: &mut Executable<WrapperTask>, ) -> Result<(), PayloadError<ProjectError>>
During the initialization of the task, configures the inputs and outputs of the task.
Source§fn recover_outputs(
&mut self,
_output: &Output,
) -> Result<(), PayloadError<ProjectError>>
fn recover_outputs( &mut self, _output: &Output, ) -> Result<(), PayloadError<ProjectError>>
Recovers outputs from previous run if up-to-date
Source§impl UpToDate for WrapperTask
impl UpToDate for WrapperTask
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 WrapperTask
impl RefUnwindSafe for WrapperTask
impl Send for WrapperTask
impl Sync for WrapperTask
impl Unpin for WrapperTask
impl UnwindSafe for WrapperTask
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> 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