pub struct LoggingWebhookHandler;Expand description
Example webhook handler implementation
Trait Implementations§
Source§impl WebhookHandler for LoggingWebhookHandler
impl WebhookHandler for LoggingWebhookHandler
Source§fn on_issue_created<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_issue_created<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle an issue created event
Source§fn on_issue_updated<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_issue_updated<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle an issue updated event
Source§fn on_issue_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_issue_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle an issue deleted event
Source§fn on_other_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_other_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 WebhookEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle any other event type
Auto Trait Implementations§
impl Freeze for LoggingWebhookHandler
impl RefUnwindSafe for LoggingWebhookHandler
impl Send for LoggingWebhookHandler
impl Sync for LoggingWebhookHandler
impl Unpin for LoggingWebhookHandler
impl UnsafeUnpin for LoggingWebhookHandler
impl UnwindSafe for LoggingWebhookHandler
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