#![allow(dead_code)]
use navi_notifier_forge::model::User;
use serde::Deserialize;
#[derive(Debug, Clone, Deserialize)]
pub struct Notification {
pub id: String,
pub reason: String,
#[serde(default)]
pub updated_at: Option<String>,
pub subject: NotificationSubject,
pub repository: NotificationRepo,
}
#[derive(Debug, Clone, Deserialize)]
pub struct NotificationSubject {
#[serde(default)]
pub title: String,
#[serde(default)]
pub url: Option<String>,
#[serde(rename = "type", default)]
pub kind: String,
}
#[derive(Debug, Clone, Deserialize)]
pub struct NotificationRepo {
pub name: String,
pub owner: User,
#[serde(default)]
pub html_url: Option<String>,
}