pub enum TaskKind {
Empty,
Command(String),
ComplexCommand(ComplexCommand),
Commands(ExecKind),
Include(Include),
}
Variants§
Implementations§
Source§impl TaskKind
impl TaskKind
pub fn get_example(&self) -> Option<String>
pub fn get_usage_help( &self, name: &str, designer: &Designer, ) -> DevrcResult<String>
pub fn format_help(&self) -> DevrcResult<&str>
pub fn format_parameters_help(&self, designer: &Designer) -> DevrcResult<String>
pub fn is_private(&self) -> bool
pub fn perform( &self, name: &str, execution_plugins_registry: Rc<RefCell<ExecutionPluginManager>>, parent_scope: Rc<RefCell<Scope>>, args: &TaskArguments, config: &Config, designer: &Designer, ) -> DevrcResult<TaskResult>
pub fn get_scope( &self, _name: &str, parent_scope: Rc<RefCell<Scope>>, args: &TaskArguments, ) -> DevrcResult<Scope>
pub fn get_dependencies(&self) -> Option<&Vec<String>>
pub fn get_subtasks(&self) -> Option<&Vec<SubtaskCall>>
pub fn get_parameters( &self, parts: &[String], ) -> DevrcResult<IndexMap<String, ParamValue>>
pub fn has_parameters(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskKind
impl<'de> Deserialize<'de> for TaskKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskKind
impl RefUnwindSafe for TaskKind
impl Send for TaskKind
impl Sync for TaskKind
impl Unpin for TaskKind
impl UnwindSafe for TaskKind
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