Struct repo_backup::config::Config[][src]

pub struct Config {
    pub general: General,
    pub github: Option<GithubConfig>,
    pub gitlab: Option<GitLabConfig>,
}

The overall configuration struct.

Fields

General configuration options.

Settings specific to the Github provider.

Settings for the GitLab provider.

Methods

impl Config
[src]

Load a Config from some file on disk.

Load the config directly from a source string.

Generate an example config.

Serialize the Config as TOML.

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter. Read more

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Config
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Config

impl Sync for Config