pub struct WebhookManager { /* private fields */ }Expand description
Webhook manager for multiple webhooks
Implementations§
Source§impl WebhookManager
impl WebhookManager
Sourcepub fn new(configs: Vec<WebhookConfig>) -> Self
pub fn new(configs: Vec<WebhookConfig>) -> Self
Create a new webhook manager
Sourcepub async fn send_event(&self, event: &WebhookEvent) -> Result<()>
pub async fn send_event(&self, event: &WebhookEvent) -> Result<()>
Send event to all matching webhooks
Auto Trait Implementations§
impl Freeze for WebhookManager
impl !RefUnwindSafe for WebhookManager
impl Send for WebhookManager
impl Sync for WebhookManager
impl Unpin for WebhookManager
impl !UnwindSafe for WebhookManager
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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