pub struct Concurrency {
pub group: String,
pub cancel_in_progress: Option<bool>,
pub limit: Option<u32>,
}
Expand description
Represents concurrency settings for workflows.
Fields§
§group: String
The group name for concurrency.
cancel_in_progress: Option<bool>
Whether to cancel in-progress jobs.
limit: Option<u32>
The limit on concurrent jobs.
Implementations§
Source§impl Concurrency
impl Concurrency
Sourcepub fn cancel_in_progress(self, value: impl Into<bool>) -> Self
pub fn cancel_in_progress(self, value: impl Into<bool>) -> Self
Sets the cancel_in_progress
field of this struct.
Source§impl Concurrency
impl Concurrency
pub fn new(group: impl Into<Expression>) -> Self
Trait Implementations§
Source§impl Clone for Concurrency
impl Clone for Concurrency
Source§fn clone(&self) -> Concurrency
fn clone(&self) -> Concurrency
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Concurrency
impl Debug for Concurrency
Source§impl Default for Concurrency
impl Default for Concurrency
Source§fn default() -> Concurrency
fn default() -> Concurrency
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Concurrency
impl<'de> Deserialize<'de> for Concurrency
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
Source§impl PartialEq for Concurrency
impl PartialEq for Concurrency
Source§impl Serialize for Concurrency
impl Serialize for Concurrency
impl Eq for Concurrency
impl StructuralPartialEq for Concurrency
Auto Trait Implementations§
impl Freeze for Concurrency
impl RefUnwindSafe for Concurrency
impl Send for Concurrency
impl Sync for Concurrency
impl Unpin for Concurrency
impl UnwindSafe for Concurrency
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.