Struct cobalt::Config [] [src]

pub struct Config {
    pub source: String,
    pub dest: String,
    pub layouts: String,
    pub posts: String,
    pub post_path: Option<String>,
    pub template_extensions: Vec<String>,
    pub rss: Option<String>,
    pub name: Option<String>,
    pub description: Option<String>,
    pub link: Option<String>,
    pub ignore: Vec<Pattern>,
}

Fields

source: String dest: String layouts: String posts: String post_path: Option<String> template_extensions: Vec<String> rss: Option<String> name: Option<String> description: Option<String> link: Option<String> ignore: Vec<Pattern>

Methods

impl Config
[src]

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

Trait Implementations

impl PartialEq for Config
[src]

fn eq(&self, __arg_0: &Config) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Config) -> bool

This method tests for !=.

impl Debug for Config
[src]

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

Formats the value using the given formatter.

impl Default for Config
[src]

fn default() -> Config

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