Struct sota::datatype::config::Config [] [src]

pub struct Config {
    pub auth: Option<AuthConfig>,
    pub core: CoreConfig,
    pub dbus: DBusConfig,
    pub device: DeviceConfig,
    pub gateway: GatewayConfig,
    pub network: NetworkConfig,
    pub rvi: RviConfig,
}

A container for all parsed configs.

Fields

auth
core
dbus
device
gateway
network
rvi

Methods

impl Config
[src]

fn load(path: &str) -> Result<Config, Error>

Read a toml config file using default values for missing sections or fields.

fn parse(toml: &str) -> Result<Config, Error>

Parse a toml config using default values for missing sections or fields.

Trait Implementations

Derived Implementations

impl Clone for Config
[src]

fn clone(&self) -> Config

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Config
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for Config
[src]

impl PartialEq for Config
[src]

fn eq(&self, __arg_0: &Config) -> bool

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

fn ne(&self, __arg_0: &Config) -> bool

This method tests for !=.

impl Default for Config
[src]

fn default() -> Config

Returns the "default value" for a type. Read more