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.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more