Struct rustme::Configuration[][src]

pub struct Configuration {
    pub relative_to: PathBuf,
    pub files: HashMap<String, FileConfiguration>,
    pub glossaries: Vec<Glossary>,
}
Expand description

A configuration of how to generate one or more READMEs.

Fields

relative_to: PathBuf

The location that paths should be resolved relative to.

files: HashMap<String, FileConfiguration>

The collection of files (key) and sections (values).

glossaries: Vec<Glossary>

A list of glossaries that act as a source of snippets.

Implementations

Attempts to load a configuration from path.

Errors
  • Error::Io: Returned if an error occurs interacting with the filesystem.
  • Error::Ron: Returned if an error occurs while parsing the configuration file.

Generates the README files.

Errors

Can return various errors that are encountred with files that could not be parsed.

Generates the README files using cache to load glossaries and snippets.

Errors

Can return various errors that are encountred with files that could not be parsed.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.