Skip to main content

bestool_alertd/http_server/
types.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize)]
4pub struct StatusResponse {
5	pub name: String,
6	pub version: String,
7	pub started_at: String,
8	pub pid: u32,
9	/// Backups running on this daemon right now (empty when none, or when
10	/// backups aren't compiled in).
11	#[serde(default)]
12	pub backups_running: Vec<crate::RunningBackup>,
13	/// Backup types configured on this host (empty when none, or when backups
14	/// aren't compiled in).
15	#[serde(default)]
16	pub backups_configured: Vec<String>,
17}