pub trait WebhookHandler: Send + Sync {
// Required methods
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_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_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_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;
}Expand description
Webhook event handler trait
Required Methods§
Sourcefn 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
Sourcefn 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
Sourcefn 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
Sourcefn 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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".