pub struct EventsConfig {
pub backend: BackendConfig,
pub flows: Vec<FlowConfig>,
pub consumers: Vec<ConsumerConfig>,
}Expand description
Top-level events configuration
events:
backend:
type: memory
flows:
- name: notify-new-follower
trigger: { kind: link.created, link_type: follows }
pipeline: [...]
consumers:
- name: mobile-feed
seek: last_acknowledgedFields§
§backend: BackendConfigEvent backend configuration (memory, nats, kafka, redis)
flows: Vec<FlowConfig>Declarative event flows
consumers: Vec<ConsumerConfig>Consumer groups with seek positions
Trait Implementations§
Source§impl Clone for EventsConfig
impl Clone for EventsConfig
Source§fn clone(&self) -> EventsConfig
fn clone(&self) -> EventsConfig
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 EventsConfig
impl Debug for EventsConfig
Source§impl Default for EventsConfig
impl Default for EventsConfig
Source§fn default() -> EventsConfig
fn default() -> EventsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventsConfig
impl<'de> Deserialize<'de> for EventsConfig
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 EventsConfig
impl RefUnwindSafe for EventsConfig
impl Send for EventsConfig
impl Sync for EventsConfig
impl Unpin for EventsConfig
impl UnsafeUnpin for EventsConfig
impl UnwindSafe for EventsConfig
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