pub struct Event {Show 32 fields
pub branch_protection_rule: Option<BranchProtectionRule>,
pub check_run: Option<CheckRun>,
pub check_suite: Option<CheckSuite>,
pub create: Option<Create>,
pub delete: Option<Delete>,
pub deployment: Option<Deployment>,
pub deployment_status: Option<DeploymentStatus>,
pub discussion: Option<Discussion>,
pub discussion_comment: Option<DiscussionComment>,
pub fork: Option<bool>,
pub gollum: Option<bool>,
pub issue_comment: Option<IssueComment>,
pub issues: Option<Issues>,
pub label: Option<Label>,
pub merge_group: Option<MergeGroup>,
pub milestone: Option<Milestone>,
pub page_build: Option<bool>,
pub public: Option<bool>,
pub pull_request: Option<PullRequest>,
pub pull_request_review: Option<PullRequestReview>,
pub pull_request_review_comment: Option<PullRequestReviewComment>,
pub pull_request_target: Option<PullRequestTarget>,
pub push: Option<Push>,
pub registry_package: Option<RegistryPackage>,
pub release: Option<Release>,
pub repository_dispatch: Option<RepositoryDispatch>,
pub schedule: Option<Schedule>,
pub status: Option<bool>,
pub watch: Option<Watch>,
pub workflow_call: Option<WorkflowCall>,
pub workflow_dispatch: Option<WorkflowDispatch>,
pub workflow_run: Option<WorkflowRun>,
}
Expand description
Represents all possible webhook events that can trigger a workflow See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
Fields§
§branch_protection_rule: Option<BranchProtectionRule>
§check_run: Option<CheckRun>
§check_suite: Option<CheckSuite>
§create: Option<Create>
§delete: Option<Delete>
§deployment: Option<Deployment>
§deployment_status: Option<DeploymentStatus>
§discussion: Option<Discussion>
§discussion_comment: Option<DiscussionComment>
§fork: Option<bool>
§gollum: Option<bool>
§issue_comment: Option<IssueComment>
§issues: Option<Issues>
§label: Option<Label>
§merge_group: Option<MergeGroup>
§milestone: Option<Milestone>
§page_build: Option<bool>
§public: Option<bool>
§pull_request: Option<PullRequest>
§pull_request_review: Option<PullRequestReview>
§pull_request_review_comment: Option<PullRequestReviewComment>
§pull_request_target: Option<PullRequestTarget>
§push: Option<Push>
§registry_package: Option<RegistryPackage>
§release: Option<Release>
§repository_dispatch: Option<RepositoryDispatch>
§schedule: Option<Schedule>
§status: Option<bool>
§watch: Option<Watch>
§workflow_call: Option<WorkflowCall>
§workflow_dispatch: Option<WorkflowDispatch>
§workflow_run: Option<WorkflowRun>
Implementations§
Source§impl Event
impl Event
Sourcepub fn branch_protection_rule(
self,
value: impl Into<BranchProtectionRule>,
) -> Self
pub fn branch_protection_rule( self, value: impl Into<BranchProtectionRule>, ) -> Self
Sets the branch_protection_rule
field of this struct.
Sourcepub fn check_run(self, value: impl Into<CheckRun>) -> Self
pub fn check_run(self, value: impl Into<CheckRun>) -> Self
Sets the check_run
field of this struct.
Sourcepub fn check_suite(self, value: impl Into<CheckSuite>) -> Self
pub fn check_suite(self, value: impl Into<CheckSuite>) -> Self
Sets the check_suite
field of this struct.
Sourcepub fn deployment(self, value: impl Into<Deployment>) -> Self
pub fn deployment(self, value: impl Into<Deployment>) -> Self
Sets the deployment
field of this struct.
Sourcepub fn deployment_status(self, value: impl Into<DeploymentStatus>) -> Self
pub fn deployment_status(self, value: impl Into<DeploymentStatus>) -> Self
Sets the deployment_status
field of this struct.
Sourcepub fn discussion(self, value: impl Into<Discussion>) -> Self
pub fn discussion(self, value: impl Into<Discussion>) -> Self
Sets the discussion
field of this struct.
Sourcepub fn discussion_comment(self, value: impl Into<DiscussionComment>) -> Self
pub fn discussion_comment(self, value: impl Into<DiscussionComment>) -> Self
Sets the discussion_comment
field of this struct.
Sourcepub fn issue_comment(self, value: impl Into<IssueComment>) -> Self
pub fn issue_comment(self, value: impl Into<IssueComment>) -> Self
Sets the issue_comment
field of this struct.
Sourcepub fn merge_group(self, value: impl Into<MergeGroup>) -> Self
pub fn merge_group(self, value: impl Into<MergeGroup>) -> Self
Sets the merge_group
field of this struct.
Sourcepub fn milestone(self, value: impl Into<Milestone>) -> Self
pub fn milestone(self, value: impl Into<Milestone>) -> Self
Sets the milestone
field of this struct.
Sourcepub fn page_build(self, value: impl Into<bool>) -> Self
pub fn page_build(self, value: impl Into<bool>) -> Self
Sets the page_build
field of this struct.
Sourcepub fn pull_request(self, value: impl Into<PullRequest>) -> Self
pub fn pull_request(self, value: impl Into<PullRequest>) -> Self
Sets the pull_request
field of this struct.
Sourcepub fn pull_request_review(self, value: impl Into<PullRequestReview>) -> Self
pub fn pull_request_review(self, value: impl Into<PullRequestReview>) -> Self
Sets the pull_request_review
field of this struct.
Sourcepub fn pull_request_review_comment(
self,
value: impl Into<PullRequestReviewComment>,
) -> Self
pub fn pull_request_review_comment( self, value: impl Into<PullRequestReviewComment>, ) -> Self
Sets the pull_request_review_comment
field of this struct.
Sourcepub fn pull_request_target(self, value: impl Into<PullRequestTarget>) -> Self
pub fn pull_request_target(self, value: impl Into<PullRequestTarget>) -> Self
Sets the pull_request_target
field of this struct.
Sourcepub fn registry_package(self, value: impl Into<RegistryPackage>) -> Self
pub fn registry_package(self, value: impl Into<RegistryPackage>) -> Self
Sets the registry_package
field of this struct.
Sourcepub fn repository_dispatch(self, value: impl Into<RepositoryDispatch>) -> Self
pub fn repository_dispatch(self, value: impl Into<RepositoryDispatch>) -> Self
Sets the repository_dispatch
field of this struct.
Sourcepub fn schedule(self, value: impl Into<Schedule>) -> Self
pub fn schedule(self, value: impl Into<Schedule>) -> Self
Sets the schedule
field of this struct.
Sourcepub fn workflow_call(self, value: impl Into<WorkflowCall>) -> Self
pub fn workflow_call(self, value: impl Into<WorkflowCall>) -> Self
Sets the workflow_call
field of this struct.
Sourcepub fn workflow_dispatch(self, value: impl Into<WorkflowDispatch>) -> Self
pub fn workflow_dispatch(self, value: impl Into<WorkflowDispatch>) -> Self
Sets the workflow_dispatch
field of this struct.
Sourcepub fn workflow_run(self, value: impl Into<WorkflowRun>) -> Self
pub fn workflow_run(self, value: impl Into<WorkflowRun>) -> Self
Sets the workflow_run
field of this struct.