//! Serializable types for the config domain.

use serde::{Deserialize, Serialize};

/// A single config entry.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ConfigEntry {
    pub name: String,
    pub value: String,
}

/// A snapshot of config entries matching a query.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct ConfigSnapshot {
    pub entries: Vec<ConfigEntry>,
}
