pub struct EventHandler {
pub name: String,
pub event: String,
pub action: String,
pub webhook_url: Option<String>,
pub slack_channel: Option<String>,
pub email_recipients: Option<Vec<String>>,
pub phone_numbers: Option<Vec<String>>,
pub push_target: Option<String>,
pub rate_limit: Option<u32>,
}Expand description
Event handler configuration.
Fields§
§name: StringHandler name.
event: StringEvent type (e.g., “User.created”, “Order.updated”).
action: StringAction: slack, email, sms, webhook, push, log.
webhook_url: Option<String>Webhook URL (for webhook action).
slack_channel: Option<String>Slack channel (for slack action).
email_recipients: Option<Vec<String>>Email recipients (for email action).
phone_numbers: Option<Vec<String>>Phone numbers (for sms action).
push_target: Option<String>Push notification target (for push action).
rate_limit: Option<u32>Rate limit in seconds between notifications.
Trait Implementations§
Source§impl Clone for EventHandler
impl Clone for EventHandler
Source§fn clone(&self) -> EventHandler
fn clone(&self) -> EventHandler
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 EventHandler
impl Debug for EventHandler
Source§impl<'de> Deserialize<'de> for EventHandler
impl<'de> Deserialize<'de> for EventHandler
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
Source§impl PartialEq for EventHandler
impl PartialEq for EventHandler
Source§impl Serialize for EventHandler
impl Serialize for EventHandler
impl Eq for EventHandler
impl StructuralPartialEq for EventHandler
Auto Trait Implementations§
impl Freeze for EventHandler
impl RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl UnsafeUnpin for EventHandler
impl UnwindSafe for EventHandler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.