Struct mdbook::book::bookconfig::BookConfig
[−]
[src]
pub struct BookConfig { pub dest: PathBuf, pub src: PathBuf, pub theme_path: PathBuf, pub title: String, pub author: String, pub description: String, pub indent_spaces: i32, pub google_analytics: Option<String>, // some fields omitted }
Fields
dest: PathBuf
src: PathBuf
theme_path: PathBuf
title: String
description: String
indent_spaces: i32
google_analytics: Option<String>
Methods
impl BookConfig
[src]
fn new(root: &Path) -> Self
fn read_config(&mut self, root: &Path) -> &mut Self
fn parse_from_toml_string(&mut self, data: &str) -> &mut Self
fn parse_from_json_string(&mut self, data: &str) -> &mut Self
Parses the string to JSON and converts it
to BTreeMap
fn parse_from_btreemap(&mut self, config: &BTreeMap<String, Value>) -> &mut Self
fn get_root(&self) -> &Path
fn set_root(&mut self, root: &Path) -> &mut Self
fn get_dest(&self) -> &Path
fn set_dest(&mut self, dest: &Path) -> &mut Self
fn get_src(&self) -> &Path
fn set_src(&mut self, src: &Path) -> &mut Self
fn get_theme_path(&self) -> &Path
fn set_theme_path(&mut self, theme_path: &Path) -> &mut Self
Trait Implementations
impl Debug for BookConfig
[src]
impl Clone for BookConfig
[src]
fn clone(&self) -> BookConfig
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