[][src]Trait tari_common::configuration::loader::NetworkConfigPath

pub trait NetworkConfigPath {
    fn main_key_prefix() -> &'static str;

    fn network_config_key() -> String { ... }
}

Load struct from config's main section and network subsection override

Network subsection will be chosen based on use_network key value from the main section defined in this trait.

Wrong network value will result in Error

Required methods

fn main_key_prefix() -> &'static str

Main configuration section

Loading content...

Provided methods

fn network_config_key() -> String

Path for use_network key in config

Loading content...

Implementors

Loading content...