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
source: Option<PathBuf>
title: Option<String>
description: Option<String>
output: Option<TomlOutputConfig>
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]
impl Clone for TomlConfig
[src]
fn clone(&self) -> TomlConfig
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 PartialEq for TomlConfig
[src]
fn eq(&self, __arg_0: &TomlConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TomlConfig) -> bool
This method tests for !=
.