alert-me/src/json/alerts.rs

11 lines
256 B
Rust
Raw Normal View History

2024-05-08 16:12:49 +00:00
use super::alert::Alert;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Alerts {
pub heartbeat_age_in_millis: u64,
pub render_time: String,
pub alerts: Vec<Alert>,
}