Trait Bot
Source pub trait Bot: Send + Sync {
// Provided methods
fn on_issue_created<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_event: IssueCreatedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_issue_updated<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_event: IssueUpdatedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_issue_closed<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_issue_id: usize,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_issue_reopened<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_event: IssueReopenedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_pull_request_created<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_event: PullRequestCreatedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_pull_request_updated<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_event: PullRequestUpdatedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_pull_request_closed<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_pull_request_id: usize,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_comment_created<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_event: CommentCreatedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_comment_updated<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_event: CommentUpdatedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_comment_deleted<'life0, 'async_trait>(
&'life0 self,
_repo: Repository,
_running_info: RunningInfo,
_comment_id: usize,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}