use serde::{Deserialize, Serialize};

/// Features that can be enabled for content types
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ContentFeatures {
    /// Enable pagination
    pub pagination: Option<bool>,
    /// Enable categories
    pub categories: Option<bool>,
    /// Enable tags
    pub tags: Option<bool>,
    /// Enable search
    pub search: Option<bool>,
    /// Enable RSS feeds
    pub rss: Option<bool>,
}

impl Default for ContentFeatures {
    fn default() -> Self {
        Self {
            pagination: Some(true),
            categories: Some(true),
            tags: Some(true),
            search: Some(true),
            rss: Some(false),
        }
    }
}
