pub type Rule = Workflow;Expand description
Type alias for Workflow — a Rule represents an IF-THEN unit: IF condition THEN execute actions.
Aliased Type§
pub struct Rule {Show 14 fields
pub id: String,
pub name: String,
pub priority: u32,
pub description: Option<String>,
pub condition: Value,
pub tasks: Vec<Task>,
pub continue_on_error: bool,
pub channel: String,
pub version: u32,
pub status: WorkflowStatus,
pub rollout: Option<Rollout>,
pub tags: Vec<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
/* private fields */
}Fields§
§id: String§name: String§priority: u32§description: Option<String>§condition: Value§tasks: Vec<Task>§continue_on_error: bool§channel: StringChannel for routing (default: “default”)
version: u32Version number for rule versioning (default: 1)
status: WorkflowStatusWorkflow status — Active, Paused, or Archived (default: Active)
rollout: Option<Rollout>Traffic split for this workflow. None (the default) means the workflow
is not part of a split and runs for every message.
A workflow with a rollout is skipped when the message’s
crate::Message::routing_bucket falls outside the range. A message with
no bucket is admitted — see Rollout.
Tags for categorization and filtering
created_at: Option<DateTime<Utc>>Creation timestamp
updated_at: Option<DateTime<Utc>>Last update timestamp