Files
natter/src/config/raw.rs

19 lines
601 B
Rust
Raw Normal View History

use serde::Deserialize;
use serde::Serialize;
2023-12-21 19:28:31 -05:00
/// This is the struct for the natter.toml config file that ends up in each site's root directory.
2023-12-23 06:38:23 -05:00
#[derive(Debug, Deserialize, Serialize, Default)]
pub(crate) struct RawConfig {
2023-12-17 14:28:27 -05:00
pub(super) site_title: Option<String>,
2023-10-18 20:30:32 -04:00
author: Option<String>,
email: Option<String>,
2023-10-23 21:51:15 -04:00
pub(super) use_relative_paths: Option<bool>,
pub(super) web_root: Option<String>,
pub(super) stream: Option<RawConfigStream>,
}
2023-10-18 20:30:32 -04:00
2023-12-23 06:38:23 -05:00
#[derive(Debug, Deserialize, Serialize, Default)]
pub(crate) struct RawConfigStream {
pub(super) entries_per_page: Option<usize>,
}