Struct mdbook::config::Config [] [src]

pub struct Config {
    pub book: BookConfig,
    pub build: BuildConfig,
    // some fields omitted
}

The overall configuration object for MDBook.

Fields

Metadata about the book.

Methods

impl Config
[src]

[src]

Load a Config from some string.

[src]

Load the configuration file from disk.

[src]

Fetch an arbitrary item from the Config as a toml::Value.

You can use dotted indices to access nested items (e.g. output.html.playpen will fetch the "playpen" out of the html output table).

[src]

Fetch a value from the Config so you can mutate it.

[src]

Convenience method for getting the html renderer's configuration.

Note

This is for compatibility only. It will be removed completely once the rendering and plugin system is established.

[src]

Convenience function to fetch a value from the config and deserialize it into some arbitrary type.

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter.

impl Clone for Config
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Config
[src]

[src]

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

impl PartialEq for Config
[src]

[src]

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

[src]

This method tests for !=.

impl<'de> Deserialize<'de> for Config
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more