nanoservices_utils::config

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§