pub struct Workflow {
pub auto_release: bool,
pub name: String,
}Fields§
§auto_release: boolWhen enabled, a release job is added to the workflow.
IMPORTANT: Ensure secrets.CARGO_REGISTRY_TOKEN is set for your
github action.
name: StringName of the workflow.
Implementations§
Source§impl Workflow
impl Workflow
Sourcepub fn auto_release(self, value: bool) -> Self
pub fn auto_release(self, value: bool) -> Self
Sets the auto_release field of this struct.
Source§impl Workflow
impl Workflow
Sourcepub fn to_github_workflow(&self) -> GHWorkflow
pub fn to_github_workflow(&self) -> GHWorkflow
Converts the workflow into a Github workflow.
Trait Implementations§
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