pub trait Event<'de>: Serialize + Deserialize<'de> {
    type Origin: Serialize + Deserialize<'de>;

    // Provided method
    fn origin(&self) -> Option<Self::Origin> { ... }
}
Expand description

The base trait used to represent different types of events. This will eventually have some subtraits with convenience methods.

All event types implement this.

Required Associated Types§

Provided Methods§

source

fn origin(&self) -> Option<Self::Origin>

Implementors§

source§

impl Event<'_> for CommitCommentEvent

source§

impl Event<'_> for StatusEvent

source§

impl Event<'_> for DiscussionCommentEvent

source§

impl Event<'_> for DiscussionEvent

source§

impl Event<'_> for IssueCommentEvent

source§

impl Event<'_> for IssueEvent

source§

impl Event<'_> for LabelEvent

source§

impl Event<'_> for DeploymentEvent

source§

impl Event<'_> for DeploymentStatusEvent

source§

impl Event<'_> for MetaEvent

source§

impl Event<'_> for SponsorshipEvent

source§

impl Event<'_> for MembershipEvent

source§

impl Event<'_> for OrgBlockEvent

source§

impl Event<'_> for OrganizationEvent

source§

impl Event<'_> for TeamEvent

source§

impl Event<'_> for PullRequestEvent

source§

impl Event<'_> for PullRequestReviewCommentEvent

source§

impl Event<'_> for PullRequestReviewEvent

source§

impl Event<'_> for CreateEvent

source§

impl Event<'_> for DeleteEvent

source§

impl Event<'_> for ReleaseEvent

source§

impl Event<'_> for BranchProtectionRuleEvent

source§

impl Event<'_> for CodeScanningAlertEvent

source§

impl Event<'_> for DeployKeyEvent

source§

impl Event<'_> for ForkEvent

source§

impl Event<'_> for MemberEvent

source§

impl Event<'_> for MilestoneEvent

source§

impl Event<'_> for PackageEvent

source§

impl Event<'_> for PingEvent

source§

impl Event<'_> for ProjectCardEvent

source§

impl Event<'_> for ProjectColumnEvent

source§

impl Event<'_> for ProjectEvent

source§

impl Event<'_> for PublicEvent

source§

impl Event<'_> for PushEvent

source§

impl Event<'_> for RepositoryEvent

source§

impl Event<'_> for RepositoryImportEvent

source§

impl Event<'_> for RepositoryVulnerabilityAlertEvent

source§

impl Event<'_> for SecretScanningAlertEvent

source§

impl Event<'_> for StarEvent

source§

impl Event<'_> for TeamAddEvent

source§

impl Event<'_> for WatchEvent

source§

impl Event<'_> for GollumEvent

source§

impl Event<'_> for CheckRunEvent

source§

impl Event<'_> for CheckSuiteEvent

source§

impl Event<'_> for PageBuildEvent

source§

impl Event<'_> for WorkflowDispatchEvent

source§

impl Event<'_> for WorkflowJobEvent

source§

impl Event<'_> for WorkflowRunEvent