#[non_exhaustive]pub enum EventPayload {
Show 20 variants
PushEvent(Box<PushEventPayload>),
CreateEvent(Box<CreateEventPayload>),
DeleteEvent(Box<DeleteEventPayload>),
InstallationEvent(Box<InstallationEventPayload>),
InstallationRepositoriesEvent(Box<InstallationRepositoriesEventPayload>),
InstallationTargetEvent(Box<InstallationTargetEventPayload>),
IssuesEvent(Box<IssuesEventPayload>),
IssueCommentEvent(Box<IssueCommentEventPayload>),
CommitCommentEvent(Box<CommitCommentEventPayload>),
ForkEvent(Box<ForkEventPayload>),
GollumEvent(Box<GollumEventPayload>),
MemberEvent(Box<MemberEventPayload>),
PublicEvent(Box<PublicEventPayload>),
PullRequestEvent(Box<PullRequestEventPayload>),
PullRequestReviewEvent(Box<PullRequestReviewEventPayload>),
PullRequestReviewCommentEvent(Box<PullRequestReviewCommentEventPayload>),
ReleaseEvent(Box<ReleaseEventPayload>),
WatchEvent(Box<WatchEventPayload>),
WorkflowRunEvent(Box<WorkflowRunEventPayload>),
UnknownEvent(Box<Value>),
}
Expand description
The payload in an event type.
Different event types have different payloads. Any event type not specifically part
of this enum will be captured in the variant UnknownEvent
with a value of
serde_json::Value
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PushEvent(Box<PushEventPayload>)
CreateEvent(Box<CreateEventPayload>)
DeleteEvent(Box<DeleteEventPayload>)
InstallationEvent(Box<InstallationEventPayload>)
InstallationRepositoriesEvent(Box<InstallationRepositoriesEventPayload>)
InstallationTargetEvent(Box<InstallationTargetEventPayload>)
IssuesEvent(Box<IssuesEventPayload>)
IssueCommentEvent(Box<IssueCommentEventPayload>)
CommitCommentEvent(Box<CommitCommentEventPayload>)
ForkEvent(Box<ForkEventPayload>)
GollumEvent(Box<GollumEventPayload>)
MemberEvent(Box<MemberEventPayload>)
PublicEvent(Box<PublicEventPayload>)
PullRequestEvent(Box<PullRequestEventPayload>)
PullRequestReviewEvent(Box<PullRequestReviewEventPayload>)
PullRequestReviewCommentEvent(Box<PullRequestReviewCommentEventPayload>)
ReleaseEvent(Box<ReleaseEventPayload>)
WatchEvent(Box<WatchEventPayload>)
WorkflowRunEvent(Box<WorkflowRunEventPayload>)
UnknownEvent(Box<Value>)
Trait Implementations§
source§impl Clone for EventPayload
impl Clone for EventPayload
source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EventPayload
impl Debug for EventPayload
source§impl<'de> Deserialize<'de> for EventPayload
impl<'de> Deserialize<'de> for EventPayload
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 PartialEq for EventPayload
impl PartialEq for EventPayload
source§fn eq(&self, other: &EventPayload) -> bool
fn eq(&self, other: &EventPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EventPayload
impl Serialize for EventPayload
impl StructuralPartialEq for EventPayload
Auto Trait Implementations§
impl Freeze for EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnwindSafe for EventPayload
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