pub struct StandardWorkflow {
pub auto_release: bool,
pub name: String,
pub benchmarks: bool,
pub auto_fix: bool,
pub setup: Vec<Step<Run>>,
pub test_runner: TestRunner,
}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.
benchmarks: boolWhen enabled, a benchmark job is added to the workflow.
auto_fix: boolAuto-fixes the code after
setup: Vec<Step<Run>>Steps to be executed before the checkout step
test_runner: TestRunnerThe test runner to use for running tests
Implementations§
Source§impl StandardWorkflow
impl StandardWorkflow
Sourcepub fn auto_release(self, value: bool) -> Self
pub fn auto_release(self, value: bool) -> Self
Sets the auto_release field of this struct.
Sourcepub fn benchmarks(self, value: bool) -> Self
pub fn benchmarks(self, value: bool) -> Self
Sets the benchmarks field of this struct.
Sourcepub fn test_runner(self, value: TestRunner) -> Self
pub fn test_runner(self, value: TestRunner) -> Self
Sets the test_runner field of this struct.
Source§impl StandardWorkflow
impl StandardWorkflow
Sourcepub fn to_ci_workflow(&self) -> GHWorkflow
pub fn to_ci_workflow(&self) -> GHWorkflow
Converts the workflow into a Github workflow.
Trait Implementations§
Source§impl Clone for StandardWorkflow
impl Clone for StandardWorkflow
Source§fn clone(&self) -> StandardWorkflow
fn clone(&self) -> StandardWorkflow
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 StandardWorkflow
impl Debug for StandardWorkflow
Auto Trait Implementations§
impl Freeze for StandardWorkflow
impl RefUnwindSafe for StandardWorkflow
impl Send for StandardWorkflow
impl Sync for StandardWorkflow
impl Unpin for StandardWorkflow
impl UnwindSafe for StandardWorkflow
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