pub struct DefaultEventHandler;

Implementations§

Trait Implementations§

source§

impl Debug for DefaultEventHandler

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DefaultEventHandler

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl EventHandler for DefaultEventHandler

§

type Message = ()

§

type GitHubClient = Client<DefaultEventHandler>

source§

fn message<'life0, 'async_trait>( &'life0 self, _message: Self::Message ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn listener_port(&self) -> u16

Utility function for setting the port used by the webhook.
source§

fn route(&self) -> &'static str

The route at which the listener should listen for payloads from GitHub.
source§

fn app_authorization_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, app_authorization_event: AppAuthorizationEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Someone revokes their authorization of a GitHub App
source§

fn installation_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, installation_event: InstallationEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a GitHub App installation
source§

fn installation_repositories_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, installation_repositories_event: InstallationRepositoriesEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to repositories being added to a GitHub App installation
source§

fn push_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, push_event: PushEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Commit pushed to a repository
source§

fn commit_comment_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, commit_comment_event: CommitCommentEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Comment added to a repository commit
source§

fn release_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, release_event: ReleaseEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Release created
source§

fn repository_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, repository_event: RepositoryEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Repository-related activity
source§

fn organization_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, organization_event: OrganizationEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Organization-related activity
source§

fn team_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, team_event: TeamEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to an organization’s team
source§

fn team_add_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, team_add_event: TeamAddEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

A repository is added to a team
source§

fn project_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, project_event: ProjectEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to project boards
source§

fn project_card_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, project_card_event: ProjectCardEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to project cards
source§

fn project_column_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, project_column_event: ProjectColumnEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to columns in a project board
source§

fn meta_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, meta_event: MetaEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

The webhook this event is configured on was deleted. This event will only listen for changes to the particular hook the event is installed on
source§

fn package_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, package_event: PackageEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to GitHub Packages
source§

fn ping_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, ping_event: PingEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

New webhook created
source§

fn sponsorship_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, sponsorship_event: SponsorshipEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a sponsorship listing
source§

fn marketplace_purchase_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, marketplace_purchase_event: MarketplacePurchaseEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a GitHub Marketplace purchase
source§

fn repository_dispatch_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, repository_dispatch_event: RepositoryDispatchEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

GitHub App sends a POST request to the “create a repository dispatch event” endpoint
source§

fn repository_import_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, repository_import_event: RepositoryImportEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a repository being imported to GitHub
source§

fn repository_vulnerability_alert<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, repository_vulnerability_alert: RepositoryVulnerabilityAlertEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to security vulnerability alerts in a repository
source§

fn secret_scanning_alert<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, secret_scanning_alert: SecretScanningAlertEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to secret scanning alerts in a repository
source§

fn status_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, status_event: StatusEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Status of a Git commit changed
source§

fn label_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, label_event: LabelEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a label.
source§

fn discussion_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, discussion_event: DiscussionEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a discussion
source§

fn discussion_comment_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, discussion_comment_event: DiscussionCommentEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a comment in a discussion
source§

fn branch_protection_rule_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, branch_protection_rule_event: BranchProtectionRuleEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a branch protection rule
source§

fn check_suite_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, check_suite_event: CheckSuiteEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Check suite activity has occurred
source§

fn code_scanning_alert<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, code_scanning_alert: CodeScanningAlertEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to code scanning alerts in a repository
source§

fn deployment_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, deployment_event: DeploymentEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

A deployment is created
source§

fn deployment_status_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, deployment_status_event: DeploymentStatusEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

A deployment is created
source§

fn page_build_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, page_build_event: PageBuildEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Represents an attempted build of a GitHub Pages site (successful or not)
source§

fn workflow_dispatch_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, workflow_dispatch_event: WorkflowDispatchEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Someone triggers a workflow run on GitHub or sends a POST request to the “create a workflow dispatch event” endpoint
source§

fn deploy_key_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, deploy_key_event: DeployKeyEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Deploy key added or removed from a repository
source§

fn gollum_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, gollum_event: GollumEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

A wiki page is created or updated
source§

fn membership_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, membership_event: MembershipEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to team membership
source§

fn org_block_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, org_block_event: OrgBlockEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to a user being blocked in an organization
source§

fn member_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, member_event: MemberEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Event related to repository collaborators
source§

fn public_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, public_event: PublicEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Repository made public
source§

fn milestone_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, milestone_event: MilestoneEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Event related to repository milestones
source§

fn tag_created<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, create_event: CreateEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Git branch or tag created
source§

fn tag_deleted<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, delete_event: DeleteEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Git branch or tag deleted
source§

fn star_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, star_event: StarEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Repository receives a star
source§

fn security_advisory_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, security_advisory_event: SecurityAdvisoryEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source§

fn watch_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, watch_event: WatchEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Someone begins watching a repository
source§

fn repository_forked<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, fork_event: ForkEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Repository is forked
source§

fn pull_request_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, pull_request_event: PullRequestEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to pull requests
source§

fn pull_request_review_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, pull_request_review_event: PullRequestReviewEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to pull request reviews
source§

fn pull_request_review_comment_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, pull_request_review_comment_event: PullRequestReviewCommentEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to pull request review comments in the pull request’s unified diff
source§

fn workflow_run<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, workflow_run: WorkflowRunEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

A GitHub Actions workflow run is requested or completed
source§

fn workflow_job<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, workflow_job: WorkflowJobEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

A GitHub Actions workflow job has been queued, is in progress, or has been completed on a repository
source§

fn check_run<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, check_run: CheckRunEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Check run activity has occurred
source§

fn issue_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, issue_event: IssueEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to an issue
source§

fn issue_comment_event<'life0, 'async_trait>( &'life0 self, github_client: Arc<Self::GitHubClient>, issue_comment_event: IssueCommentEvent ) -> Pin<Box<dyn Future<Output = Command<Self::Message>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Activity related to an issue or pull request comment

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more