Enum github_flows::EventPayload
source · #[non_exhaustive]
pub enum EventPayload {
Show 14 variants
PushEvent(Box<PushEventPayload, Global>),
CreateEvent(Box<CreateEventPayload, Global>),
DeleteEvent(Box<DeleteEventPayload, Global>),
IssuesEvent(Box<IssuesEventPayload, Global>),
IssueCommentEvent(Box<IssueCommentEventPayload, Global>),
CommitCommentEvent(Box<CommitCommentEventPayload, Global>),
ForkEvent(Box<ForkEventPayload, Global>),
GollumEvent(Box<GollumEventPayload, Global>),
MemberEvent(Box<MemberEventPayload, Global>),
PullRequestEvent(Box<PullRequestEventPayload, Global>),
PullRequestReviewEvent(Box<PullRequestReviewEventPayload, Global>),
PullRequestReviewCommentEvent(Box<PullRequestReviewCommentEventPayload, Global>),
WorkflowRunEvent(Box<WorkflowRunEventPayload, Global>),
UnknownEvent(Box<Value, Global>),
}
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, Global>)
CreateEvent(Box<CreateEventPayload, Global>)
DeleteEvent(Box<DeleteEventPayload, Global>)
IssuesEvent(Box<IssuesEventPayload, Global>)
IssueCommentEvent(Box<IssueCommentEventPayload, Global>)
CommitCommentEvent(Box<CommitCommentEventPayload, Global>)
ForkEvent(Box<ForkEventPayload, Global>)
GollumEvent(Box<GollumEventPayload, Global>)
MemberEvent(Box<MemberEventPayload, Global>)
PullRequestEvent(Box<PullRequestEventPayload, Global>)
PullRequestReviewEvent(Box<PullRequestReviewEventPayload, Global>)
PullRequestReviewCommentEvent(Box<PullRequestReviewCommentEventPayload, Global>)
WorkflowRunEvent(Box<WorkflowRunEventPayload, Global>)
UnknownEvent(Box<Value, Global>)
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<EventPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<EventPayload, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<EventPayload> for EventPayload
impl PartialEq<EventPayload> 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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more