index : livejrnl-rs.git

ascending towards madness

use serde::Serialize;
use serde::Deserialize;

#[derive(Debug, Serialize, Deserialize)]
pub struct RenderConfig {
    pub site_name: String,
    pub base_url: String,
    pub author: String,
	pub template: String,
	pub site_description: String,
}

impl ::std::default::Default for RenderConfig {
    fn default() -> Self { 
		Self { 
			site_name: String::from("livejrnl-rs"), 
			base_url: String::from("localhost"), 
			author: String::from("me"), 
			template: String::from("/dev/null"), 
			site_description:String::from("This is a site rendered with livejrnl-rs.").into()
		} 
	}
}