pub struct EventHandler {
pub name: String,
pub event: String,
pub action: String,
pub webhook_url: Option<String>,
pub retry_strategy: Option<String>,
pub max_retries: Option<u32>,
pub description: Option<String>,
}Expand description
Event handler configuration
Fields§
§name: StringHandler name
event: StringEvent type to handle
action: StringAction to perform (slack, email, sms, webhook, push, etc.)
webhook_url: Option<String>Webhook URL for webhook actions
retry_strategy: Option<String>Retry strategy
max_retries: Option<u32>Maximum retry attempts
description: Option<String>Handler description
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
Auto Trait Implementations§
impl Freeze for EventHandler
impl RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin 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