diff options
Diffstat (limited to 'src/models/hooks.rs')
-rw-r--r-- | src/models/hooks.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/models/hooks.rs b/src/models/hooks.rs index 5c97b8d..30bb407 100644 --- a/src/models/hooks.rs +++ b/src/models/hooks.rs @@ -63,3 +63,18 @@ pub enum ContentType { #[serde(untagged)] Other(String), } + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct Delivery { + pub id: HookDeliveryId, + pub guid: String, + pub delivered_at: DateTime<Utc>, + pub duration: f64, + pub status: String, + pub status_code: usize, + pub event: Option<WebhookEventType>, + pub action: Option<String>, + pub installation_id: Option<InstallationId>, + pub repository_id: Option<InstallationId>, +} |