pub struct WebhookIntegration { /* private fields */ }Expand description
Generic webhook integration
Implementations§
Source§impl WebhookIntegration
impl WebhookIntegration
Sourcepub fn new(config: WebhookConfig) -> Self
pub fn new(config: WebhookConfig) -> Self
Create a new webhook integration
Sourcepub async fn send_incident(
&self,
incident: &DriftIncident,
) -> Result<(), String>
pub async fn send_incident( &self, incident: &DriftIncident, ) -> Result<(), String>
Send incident to webhook
Auto Trait Implementations§
impl Freeze for WebhookIntegration
impl !RefUnwindSafe for WebhookIntegration
impl Send for WebhookIntegration
impl Sync for WebhookIntegration
impl Unpin for WebhookIntegration
impl UnsafeUnpin for WebhookIntegration
impl !UnwindSafe for WebhookIntegration
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