Struct mdbook::config::tomlconfig::TomlConfig [] [src]

pub struct TomlConfig {
    pub source: Option<PathBuf>,
    pub title: Option<String>,
    pub author: Option<String>,
    pub authors: Option<Vec<String>>,
    pub description: Option<String>,
    pub output: Option<TomlOutputConfig>,
}

Fields

Methods

impl TomlConfig
[src]

Returns a TomlConfig from a TOML string

let toml = r#"title="Some title"
[output.html]
destination = "htmlbook" "#;
 
let config = TomlConfig::from_toml(&toml).expect("Should parse correctly");
assert_eq!(config.title, Some(String::from("Some title")));
assert_eq!(config.output.unwrap().html.unwrap().destination, Some(PathBuf::from("htmlbook")));

Trait Implementations

impl Debug for TomlConfig
[src]

Formats the value using the given formatter.

impl Clone for TomlConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TomlConfig
[src]

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

This method tests for !=.

impl Eq for TomlConfig
[src]