Struct up_rs::tasks::task::TaskConfig[][src]

pub struct TaskConfig {
    pub name: Option<String>,
    pub constraints: Option<HashMap<String, String>>,
    pub requires: Option<Vec<String>>,
    pub auto_run: Option<bool>,
    pub run_lib: Option<String>,
    pub check_cmd: Option<Vec<String>>,
    pub run_cmd: Option<Vec<String>>,
    pub data: Option<Value>,
    pub description: Option<String>,
}

Fields

name: Option<String>

Task name, defaults to file name (minus extension) if unset.

constraints: Option<HashMap<String, String>>

Set of Constraints that will cause the task to be run.

requires: Option<Vec<String>>

Tasks that must have been executed beforehand.

auto_run: Option<bool>

Whether to run this by default, or only if required.

run_lib: Option<String>

Run library: up-rs library to use for this task. Either use this or run_cmd + check_cmd.

check_cmd: Option<Vec<String>>

Check command: only run the run_cmd if this command returns a non-zero exit code.

run_cmd: Option<Vec<String>>

Run command: command to run to perform the update.

data: Option<Value>

Set of data provided to the Run library.

description: Option<String>

Description of the task.

Trait Implementations

impl Debug for TaskConfig[src]

impl<'de> Deserialize<'de> for TaskConfig[src]

impl Serialize for TaskConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.