pub struct Workflow {
pub name: Option<String>,
pub env: Option<IndexMap<String, String>>,
pub run_name: Option<String>,
pub on: Option<EventValue>,
pub permissions: Option<Permissions>,
pub jobs: IndexMap<String, Job>,
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<IndexMap<String, String>>
§run_name: Option<String>
§on: Option<EventValue>
§permissions: Option<Permissions>
§jobs: IndexMap<String, Job>
§concurrency: Option<Concurrency>
§defaults: Option<Defaults>
§secrets: Option<IndexMap<String, Secret>>
§timeout_minutes: Option<u32>
Implementations§
Source§impl Workflow
impl Workflow
Sourcepub fn permissions(self, value: Permissions) -> Self
pub fn permissions(self, value: Permissions) -> Self
Sets the permissions
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 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 timeout_minutes(self, value: u32) -> Self
pub fn timeout_minutes(self, value: 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 on<T: SetEvent>(self, a: T) -> Self
pub fn env<T: SetEnv<Self>>(self, env: T) -> Self
pub fn setup_rust() -> 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.