octocrab/models/webhook_events/payload/
commit_comment.rs

1use crate::models::commits::Comment;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5#[non_exhaustive]
6pub struct CommitCommentWebhookEventPayload {
7    pub action: CommitCommentWebhookEventAction,
8    pub comment: Comment,
9}
10
11#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
12#[serde(rename_all = "snake_case")]
13#[non_exhaustive]
14pub enum CommitCommentWebhookEventAction {
15    Created,
16}