pub struct FlowConfig {
pub name: String,
pub description: Option<String>,
pub trigger: TriggerConfig,
pub pipeline: Vec<PipelineStep>,
}Expand description
A declarative event flow definition
flows:
- name: notify-new-follower
description: "Notify user when someone follows them"
trigger:
kind: link.created
link_type: follows
pipeline:
- resolve:
from: source_id
as: follower
- map:
template:
type: follow
message: "{{ follower.name }} started following you"
- deliver:
sinks: [push-notification, in-app-notification]Fields§
§name: StringUnique name for this flow
description: Option<String>Human-readable description
trigger: TriggerConfigEvent trigger (what events activate this flow)
pipeline: Vec<PipelineStep>Pipeline of operators to apply
Trait Implementations§
Source§impl Clone for FlowConfig
impl Clone for FlowConfig
Source§fn clone(&self) -> FlowConfig
fn clone(&self) -> FlowConfig
Returns a duplicate 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 FlowConfig
impl Debug for FlowConfig
Source§impl<'de> Deserialize<'de> for FlowConfig
impl<'de> Deserialize<'de> for FlowConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FlowConfig
impl RefUnwindSafe for FlowConfig
impl Send for FlowConfig
impl Sync for FlowConfig
impl Unpin for FlowConfig
impl UnsafeUnpin for FlowConfig
impl UnwindSafe for FlowConfig
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