pub struct Job {Show 19 fields
pub needs: Option<Value>,
pub if_condition: Option<Expression>,
pub name: Option<String>,
pub runs_on: Option<Value>,
pub strategy: Option<Strategy>,
pub steps: Option<Vec<AnyStep>>,
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<IndexMap<String, String>>,
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<Value>
§strategy: Option<Strategy>
§steps: Option<Vec<AnyStep>>
§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<IndexMap<String, String>>
§continue_on_error: Option<bool>
§retry: Option<RetryStrategy>
§artifacts: Option<Artifacts>
Implementations§
Source§impl Job
impl Job
Sourcepub fn if_condition(self, value: Expression) -> Self
pub fn if_condition(self, value: Expression) -> Self
Sets the if_condition
field of this struct.
Sourcepub fn permissions(self, value: Permissions) -> Self
pub fn permissions(self, value: Permissions) -> Self
Sets the permissions
field of this struct.
Sourcepub fn outputs(self, value: IndexMap<String, String>) -> Self
pub fn outputs(self, value: IndexMap<String, String>) -> Self
Sets the outputs
field of this struct.
Sourcepub fn concurrency(self, value: Concurrency) -> Self
pub fn concurrency(self, value: Concurrency) -> Self
Sets the concurrency
field of this struct.
Sourcepub fn timeout_minutes(self, value: u32) -> Self
pub fn timeout_minutes(self, value: u32) -> Self
Sets the timeout_minutes
field of this struct.
Sourcepub fn services(self, value: IndexMap<String, Container>) -> Self
pub fn services(self, value: IndexMap<String, Container>) -> Self
Sets the services
field of this struct.
Sourcepub fn secrets(self, value: IndexMap<String, Secret>) -> Self
pub fn secrets(self, value: IndexMap<String, Secret>) -> Self
Sets the secrets
field of this struct.
Sourcepub fn continue_on_error(self, value: bool) -> Self
pub fn continue_on_error(self, value: bool) -> Self
Sets the continue_on_error
field of this struct.
Sourcepub fn retry(self, value: RetryStrategy) -> Self
pub fn retry(self, value: 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.