pub struct Config {
pub name: String,
pub title: String,
pub description: String,
pub role: Role,
pub aliases: Vec<String>,
pub eligibility: Eligibility,
pub dependencies: Option<Dependencies>,
}
Expand description
The configuration for an Activity
, defining its metadata, eligibility criteria, and execution semantics.
Fields§
§name: String
A unique identifier for the activity.
title: String
A human-readable title for the activity.
description: String
A brief description of the activity’s purpose and functionality.
role: Role
The role of the activity within the workflow, determining its behavior and interaction with other activities.
aliases: Vec<String>
Names by which this activity has previously been known.
eligibility: Eligibility
The conditions that determine when the activity should execute.
dependencies: Option<Dependencies>
Implementations§
source§impl Config
impl Config
sourcepub fn action(
name: impl Into<String>,
title: impl Into<String>,
description: impl Into<String>,
) -> Self
pub fn action( name: impl Into<String>, title: impl Into<String>, description: impl Into<String>, ) -> Self
Creates a new instance with role Role::Action
and the specified name, title, and description.
sourcepub fn aliases<I, S>(self, aliases: I) -> Self
pub fn aliases<I, S>(self, aliases: I) -> Self
Sets the aliases
field, which contains names by which this activity has previously been known.
sourcepub fn eligibility(self, eligibility: Eligibility) -> Self
pub fn eligibility(self, eligibility: Eligibility) -> Self
Sets the eligibility
field, which defines the conditions under which this activity is eligible for execution.
sourcepub fn downstream_dependencies<I, S>(self, dependencies: I) -> Self
pub fn downstream_dependencies<I, S>(self, dependencies: I) -> Self
Sets the dependencies
field to specify dependencies that should be triggered after this activity completes.