pub enum Event {
Show 63 variants
BranchProtectionRule {
action: String,
enterprise: Enterprise,
repository: Repository,
installation: Installation,
organization: Organization,
rule: BranchProtectionRule,
sender: Sender,
changes: Option<Value>,
},
CheckRun {},
CheckSuite {},
CodeScanningAlert {},
CommitComment {},
Create {},
Delete {},
DependabotAlert {},
DeployKey {},
Deployment {},
DeploymentStatus {},
Discussion {},
DiscussionComment {},
Fork {},
GithubAppAuthorization {},
Gollum {},
Installation {},
InstallationRepositories {},
InstallationTarget {},
IssueComment {},
Issues {},
Label {},
MarketplacePurchase {},
Member {},
Membership {},
MergeGroup {},
Meta {},
Milestone {},
OrgBlock {},
Organization {},
Package {},
PageBuild {},
Ping {
hook: Option<Hook>,
hook_id: Option<i64>,
organization: Organization,
repository: Repository,
sender: Sender,
zen: String,
},
ProjectCard {},
Project {},
ProjectColumn {},
ProjectsV2 {},
ProjectsV2Item {},
Public {},
PullRequest {},
PullRequestReviewComments {},
PullRequestReview {},
PullRequestReviewThread {},
Push {Show 16 fields
after: String,
base_ref: Option<String>,
before: String,
commits: Vec<Commit>,
compare: String,
created: bool,
deleted: bool,
enterprise: Enterprise,
forced: bool,
head_commit: Box<HeadCommit>,
installation: Installation,
organization: Organization,
pusher: Pusher,
ref: String,
repository: Value,
sender: Sender,
},
RegistryPackage {},
Release {},
Repository {},
RepositoryDispatch {},
RepositoryImport {},
RepositoryVulnerabilityAlert {},
SecretScanningAlert {},
SecretScanningAlertLocation {},
SecretAdvisory {},
SecurityAndAnalysis {},
Sponsorship {},
Star {},
Status {},
TeamAdd {},
Team {},
Watch {},
WorkflowDispatch {},
WorkflowJob {},
WorkflowRun {},
}
Variants§
BranchProtectionRule
Fields
§
enterprise: Enterprise
§
repository: Repository
§
installation: Installation
§
organization: Organization
§
rule: BranchProtectionRule
CheckRun
CheckSuite
CodeScanningAlert
CommitComment
Create
Delete
DependabotAlert
DeployKey
Deployment
DeploymentStatus
Discussion
DiscussionComment
Fork
GithubAppAuthorization
Gollum
Installation
InstallationRepositories
InstallationTarget
IssueComment
Issues
Label
MarketplacePurchase
Member
Membership
MergeGroup
Meta
Milestone
OrgBlock
Organization
Package
PageBuild
Ping
ProjectCard
Project
ProjectColumn
ProjectsV2
ProjectsV2Item
Public
PullRequest
PullRequestReviewComments
PullRequestReview
PullRequestReviewThread
Push
Fields
§
enterprise: Enterprise
§
head_commit: Box<HeadCommit>
§
installation: Installation
§
organization: Organization
RegistryPackage
Release
Repository
RepositoryDispatch
RepositoryImport
RepositoryVulnerabilityAlert
SecretScanningAlert
SecretScanningAlertLocation
SecretAdvisory
SecurityAndAnalysis
Sponsorship
Star
Status
TeamAdd
Team
Watch
WorkflowDispatch
WorkflowJob
WorkflowRun
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'_enum> From<&'_enum Event> for EventDiscriminants
impl<'_enum> From<&'_enum Event> for EventDiscriminants
Source§fn from(val: &'_enum Event) -> EventDiscriminants
fn from(val: &'_enum Event) -> EventDiscriminants
Converts to this type from the input type.
Source§impl From<Event> for EventDiscriminants
impl From<Event> for EventDiscriminants
Source§fn from(val: Event) -> EventDiscriminants
fn from(val: Event) -> EventDiscriminants
Converts to this type from the input type.
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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