use hjkl_config::AppConfig;
use serde::Deserialize;
use std::path::PathBuf;
#[derive(Debug, Deserialize)]
#[serde(default, deny_unknown_fields)]
pub struct GpurConfig {
pub tick_ms: u64,
pub theme: Option<PathBuf>,
pub history_len: usize,
pub graphs: String,
}
impl Default for GpurConfig {
fn default() -> Self {
Self {
tick_ms: 1000,
theme: None,
history_len: 300,
graphs: "braille".into(),
}
}
}
impl AppConfig for GpurConfig {
const APPLICATION: &'static str = "gpur";
}