pub struct Workflow {
pub name: Option<String>,
pub env: Option<Env>,
pub run_name: Option<String>,
pub on: Option<Event>,
pub permissions: Option<Permissions>,
pub jobs: Option<Jobs>,
pub concurrency: Option<Concurrency>,
pub defaults: Option<Defaults>,
pub secrets: Option<IndexMap<String, Secret>>,
pub timeout_minutes: Option<u32>,
}
Fields§
§name: Option<String>
§env: Option<Env>
§run_name: Option<String>
§on: Option<Event>
§permissions: Option<Permissions>
§jobs: Option<Jobs>
§concurrency: Option<Concurrency>
§defaults: Option<Defaults>
§secrets: Option<IndexMap<String, Secret>>
§timeout_minutes: Option<u32>
Implementations§
Source§impl Workflow
impl Workflow
Sourcepub fn run_name(self, value: impl Into<String>) -> Self
pub fn run_name(self, value: impl Into<String>) -> Self
Sets the run_name
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 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 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 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 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.
Source§impl Workflow
impl Workflow
pub fn new<T: ToString>(name: T) -> Self
pub fn to_string(&self) -> Result<String, Error>
pub fn add_job<T: ToString, J: Into<Job>>(self, id: T, job: J) -> Self
pub fn parse(yml: &str) -> Result<Self, Error>
pub fn generate(self) -> Result<(), Error>
pub fn add_event<T: Into<Event>>(self, that: T) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workflow
impl<'de> Deserialize<'de> for Workflow
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 Workflow
impl StructuralPartialEq for Workflow
Auto Trait Implementations§
impl Freeze for Workflow
impl RefUnwindSafe for Workflow
impl Send for Workflow
impl Sync for Workflow
impl Unpin for Workflow
impl UnwindSafe for Workflow
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.