Struct helianto::Settings [] [src]

pub struct Settings {
    pub source_dir: PathBuf,
    pub output_dir: PathBuf,
    pub max_depth: usize,
    pub follow_links: bool,
    pub site_title: Option<String>,
    pub site_url: String,
    pub site_language: Option<String>,
}

Fields

source_dir: PathBuf output_dir: PathBuf max_depth: usize follow_links: bool site_title: Option<String> site_url: String site_language: Option<String>

Methods

impl Settings
[src]

fn from_file<P: AsRef<Path>>(path: &P) -> Result<Self>

Trait Implementations

impl Debug for Settings
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Settings
[src]

fn clone(&self) -> Settings

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Default for Settings
[src]

fn default() -> Settings

Returns the "default value" for a type. Read more

impl Decodable for Settings
[src]

fn decode<D: Decoder>(decoder: &mut D) -> Result<Settings, D::Error>