pub struct SinkConfig {
pub name: String,
pub sink_type: SinkType,
pub config: HashMap<String, Value>,
}Expand description
Sink configuration — a destination where events are delivered
sinks:
- name: push-notification
type: push
config:
provider: expo
- name: in-app-notification
type: in_app
config:
ttl: 30d
- name: analytics-webhook
type: webhook
config:
url: https://analytics.example.com/events
method: POST
headers:
Authorization: "Bearer {{ env.ANALYTICS_TOKEN }}"Fields§
§name: StringUnique sink name (referenced by deliver operators in flows)
sink_type: SinkTypeSink type
config: HashMap<String, Value>Type-specific configuration
Trait Implementations§
Source§impl Clone for SinkConfig
impl Clone for SinkConfig
Source§fn clone(&self) -> SinkConfig
fn clone(&self) -> SinkConfig
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 SinkConfig
impl Debug for SinkConfig
Source§impl<'de> Deserialize<'de> for SinkConfig
impl<'de> Deserialize<'de> for SinkConfig
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 SinkConfig
impl RefUnwindSafe for SinkConfig
impl Send for SinkConfig
impl Sync for SinkConfig
impl Unpin for SinkConfig
impl UnsafeUnpin for SinkConfig
impl UnwindSafe for SinkConfig
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