Trait nanoservices_utils::config::GetConfigVariable

source ·
pub trait GetConfigVariable {
    // Required method
    fn get_config_variable(variable: String) -> Result<String, NanoServiceError>;
}
Expand description

Used for extracting config cariables.

Required Methods§

source

fn get_config_variable(variable: String) -> Result<String, NanoServiceError>

Gets the config variable

§Arguments
  • variable - The name of the config variable to get
§Returns
  • Result<String, NanoServiceError> - The result of getting the config variable

Object Safety§

This trait is not object safe.

Implementors§