pub struct Job {Show 19 fields
pub needs: Option<Value>,
pub if_condition: Option<Expression>,
pub name: Option<String>,
pub runs_on: Option<RunsOn>,
pub strategy: Option<Strategy>,
pub steps: Option<Vec<StepValue>>,
pub uses: Option<String>,
pub container: Option<Container>,
pub permissions: Option<Permissions>,
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 env: Option<Env>,
pub continue_on_error: Option<bool>,
pub retry: Option<RetryStrategy>,
pub artifacts: Option<Artifacts>,
}Fields§
§needs: Option<Value>§if_condition: Option<Expression>§name: Option<String>§runs_on: Option<RunsOn>§strategy: Option<Strategy>§steps: Option<Vec<StepValue>>§uses: Option<String>§container: Option<Container>§permissions: Option<Permissions>§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>§env: Option<Env>§continue_on_error: Option<bool>§retry: Option<RetryStrategy>§artifacts: Option<Artifacts>Implementations§
Source§impl Job
impl Job
Sourcepub fn if_condition(self, value: impl Into<Expression>) -> Self
pub fn if_condition(self, value: impl Into<Expression>) -> Self
Sets the if_condition 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 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.