pub struct DeliverConfig {
pub sink: Option<String>,
pub sinks: Option<Vec<String>>,
}Expand description
Configuration for the deliver operator
Sends the processed event to one or more sinks.
# Single sink
- deliver:
sink: push-notification
# Multiple sinks
- deliver:
sinks: [push-notification, in-app-notification, websocket]Fields§
§sink: Option<String>Single sink name (mutually exclusive with sinks)
sinks: Option<Vec<String>>Multiple sink names (mutually exclusive with sink)
Implementations§
Source§impl DeliverConfig
impl DeliverConfig
Sourcepub fn sink_names(&self) -> Vec<&str>
pub fn sink_names(&self) -> Vec<&str>
Get all sink names this deliver step targets
If both sink and sinks are present, they are merged (with a warning).
Trait Implementations§
Source§impl Clone for DeliverConfig
impl Clone for DeliverConfig
Source§fn clone(&self) -> DeliverConfig
fn clone(&self) -> DeliverConfig
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 DeliverConfig
impl Debug for DeliverConfig
Source§impl<'de> Deserialize<'de> for DeliverConfig
impl<'de> Deserialize<'de> for DeliverConfig
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 DeliverConfig
impl RefUnwindSafe for DeliverConfig
impl Send for DeliverConfig
impl Sync for DeliverConfig
impl Unpin for DeliverConfig
impl UnsafeUnpin for DeliverConfig
impl UnwindSafe for DeliverConfig
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