pub struct Job {
pub id: String,
pub name: String,
pub steps: Vec<Step>,
pub needs: Vec<String>,
pub env: HashMap<String, ActValue>,
pub accept: Option<ActValue>,
pub outputs: HashMap<String, ActValue>,
pub on: HashMap<String, ActValue>,
/* private fields */
}Fields§
§id: String§name: String§steps: Vec<Step>§needs: Vec<String>§env: HashMap<String, ActValue>§accept: Option<ActValue>§outputs: HashMap<String, ActValue>§on: HashMap<String, ActValue>Implementations§
source§impl Job
impl Job
pub fn new() -> Self
pub fn with_id(self, id: &str) -> Self
pub fn with_name(self, name: &str) -> Self
pub fn with_env(self, name: &str, value: Value) -> Self
pub fn with_accept(self, accept: &str) -> Self
pub fn with_need(self, need: &str) -> Self
pub fn with_output(self, name: &str, value: Value) -> Self
pub fn with_on(self, name: &str, value: Value) -> Self
pub fn with_step(self, build: fn(_: Step) -> Step) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
Blanket Implementations§
source§impl<T> Variant for Twhere
T: Any + Clone + SendSync,
impl<T> Variant for Twhere
T: Any + Clone + SendSync,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.source§fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert this
Variant trait object to Box<dyn Any>.