summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/src/workflow/activity.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/src/workflow/activity.rs b/rust/src/workflow/activity.rs
index 25f7bdf5..a893e798 100644
--- a/rust/src/workflow/activity.rs
+++ b/rust/src/workflow/activity.rs
@@ -287,6 +287,19 @@ pub struct Eligibility {
}
impl Eligibility {
+ /// Creates a new instance without an automatically generated boolean control setting.
+ /// The activity is eligible to run by default.
+ pub fn without_setting() -> Self {
+ Eligibility {
+ auto: None,
+ run_once: None,
+ run_once_per_session: None,
+ continuation: None,
+ predicates: vec![],
+ logical_operator: None,
+ }
+ }
+
/// Creates a new instance with an automatically generated boolean control setting and corresponding predicate.
/// The setting is enabled by default.
pub fn auto() -> Self {