gitdataai/lib/model/repos/repo_webhook_delivery.rs
2026-05-30 01:38:40 +08:00

21 lines
603 B
Rust

use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct RepoWebhookDeliveryModel {
pub id: Uuid,
pub repo: Uuid,
pub webhook: Uuid,
pub event: String,
pub request_headers: Option<String>,
pub request_body: Option<String>,
pub response_status: Option<i32>,
pub response_headers: Option<String>,
pub response_body: Option<String>,
pub error: Option<String>,
pub delivered_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
}