pub struct Job {Show 18 fields
pub cond: Option<Expression>,
pub name: Option<String>,
pub runs_on: Option<RunsOn>,
pub permissions: Option<Permissions>,
pub env: Option<Env>,
pub strategy: Option<Strategy>,
pub steps: Option<Vec<StepValue>>,
pub uses: Option<String>,
pub container: Option<Container>,
pub outputs: Option<IndexMap<String, String>>,
pub concurrency: Option<Concurrency>,
pub timeout_minutes: Option<u32>,
pub services: Option<IndexMap<String, Container>>,
pub secrets: Option<IndexMap<String, Secret>>,
pub defaults: Option<Defaults>,
pub continue_on_error: Option<bool>,
pub retry: Option<RetryStrategy>,
pub artifacts: Option<Artifacts>,
/* private fields */
}
Expand description
Represents a job in the workflow.
Fields§
§cond: Option<Expression>
§name: Option<String>
§runs_on: Option<RunsOn>
§permissions: Option<Permissions>
§env: Option<Env>
§strategy: Option<Strategy>
§steps: Option<Vec<StepValue>>
§uses: Option<String>
§container: Option<Container>
§outputs: Option<IndexMap<String, String>>
§concurrency: Option<Concurrency>
§timeout_minutes: Option<u32>
§services: Option<IndexMap<String, Container>>
§secrets: Option<IndexMap<String, Secret>>
§defaults: Option<Defaults>
§continue_on_error: Option<bool>
§retry: Option<RetryStrategy>
§artifacts: Option<Artifacts>
Implementations§
Source§impl Job
impl Job
pub fn tmp_needs(self, value: impl Into<Vec<Job>>) -> Self
Sourcepub fn cond(self, value: impl Into<Expression>) -> Self
pub fn cond(self, value: impl Into<Expression>) -> Self
Sets the cond
field of this struct.
Sourcepub fn permissions(self, value: impl Into<Permissions>) -> Self
pub fn permissions(self, value: impl Into<Permissions>) -> Self
Sets the permissions
field of this struct.
Sourcepub fn strategy(self, value: impl Into<Strategy>) -> Self
pub fn strategy(self, value: impl Into<Strategy>) -> Self
Sets the strategy
field of this struct.
Sourcepub fn steps(self, value: impl Into<Vec<StepValue>>) -> Self
pub fn steps(self, value: impl Into<Vec<StepValue>>) -> Self
Sets the steps
field of this struct.
Sourcepub fn container(self, value: impl Into<Container>) -> Self
pub fn container(self, value: impl Into<Container>) -> Self
Sets the container
field of this struct.
Sourcepub fn outputs(self, value: impl Into<IndexMap<String, String>>) -> Self
pub fn outputs(self, value: impl Into<IndexMap<String, String>>) -> Self
Sets the outputs
field of this struct.
Sourcepub fn concurrency(self, value: impl Into<Concurrency>) -> Self
pub fn concurrency(self, value: impl Into<Concurrency>) -> Self
Sets the concurrency
field of this struct.
Sourcepub fn timeout_minutes(self, value: impl Into<u32>) -> Self
pub fn timeout_minutes(self, value: impl Into<u32>) -> Self
Sets the timeout_minutes
field of this struct.
Sourcepub fn services(self, value: impl Into<IndexMap<String, Container>>) -> Self
pub fn services(self, value: impl Into<IndexMap<String, Container>>) -> Self
Sets the services
field of this struct.
Sourcepub fn secrets(self, value: impl Into<IndexMap<String, Secret>>) -> Self
pub fn secrets(self, value: impl Into<IndexMap<String, Secret>>) -> Self
Sets the secrets
field of this struct.
Sourcepub fn defaults(self, value: impl Into<Defaults>) -> Self
pub fn defaults(self, value: impl Into<Defaults>) -> Self
Sets the defaults
field of this struct.
Sourcepub fn continue_on_error(self, value: impl Into<bool>) -> Self
pub fn continue_on_error(self, value: impl Into<bool>) -> Self
Sets the continue_on_error
field of this struct.
Sourcepub fn retry(self, value: impl Into<RetryStrategy>) -> Self
pub fn retry(self, value: impl Into<RetryStrategy>) -> Self
Sets the retry
field of this struct.
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
impl Eq for Job
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
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> 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.