17 lines
334 B
Rust

use serde::{Deserialize, Serialize};
/// Cache configuration
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct CacheConfig {
pub persist_path: String,
}
impl Default for CacheConfig {
fn default() -> Self {
Self {
persist_path: "/var/lib/cm-dashboard/cache.json".to_string(),
}
}
}