Struct repo_backup::config::Config
[−]
[src]
pub struct Config {
pub general: General,
pub github: Option<GithubConfig>,
}The overall configuration struct.
Fields
general: General
General configuration options.
github: Option<GithubConfig>
Settings specific to the Github provider.
Methods
impl Config[src]
fn from_file<P: AsRef<Path>>(file: P) -> Result<Config, Error>[src]
Load a Config from some file on disk.
fn from_str(src: &str) -> Result<Config, Error>[src]
Load the config directly from a source string.
fn example() -> Config[src]
Generate an example config.
fn as_toml(&self) -> String[src]
Serialize the Config as TOML.
Trait Implementations
impl Debug for Config[src]
impl Clone for Config[src]
fn clone(&self) -> Config[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more