Module confget::defs

source ·
Expand description

Common definitions used by the various confget modules.

This module mainly defines the Config struct that provides configuration settings for pretty much all of the functions in the confget library. The easiest way to use it is to call the Config::default method and override some settings as needed:

let config = confget::Config {
    filename: Some("/etc/config.ini".to_string()),
    section: "client".to_string(),
    ..confget::Config::default()
};

Structs

  • Configuration settings for the confget functions.

Enums

  • The configuration backend to use for parsing the input data.
  • An error that occurred during processing the input data.

Type Aliases

  • Section/variable/value information read from a file.
  • Variable/value pairs from a single section.