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: StringA unique identifier for the activity.
title: StringA human-readable title for the activity.
description: StringA brief description of the activity’s purpose and functionality.
role: RoleThe 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: EligibilityThe 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.