natter/src/config/definition.rs

21 lines
491 B
Rust
Raw Normal View History

use serde::Deserialize;
use serde::Serialize;
/// This is the struct for the writer.toml config file that ends up in each site's root directory.
#[derive(Deserialize, Serialize)]
pub(crate) struct Config {
2023-10-18 20:30:32 -04:00
site_title: String,
author: Option<String>,
email: Option<String>,
}
2023-10-18 20:30:32 -04:00
impl Default for Config {
fn default() -> Self {
2023-10-18 20:30:32 -04:00
Config {
site_title: "My super awesome website".to_owned(),
author: None,
email: None,
}
}
}