pub struct EnvSourceOptions {
pub prefix: Option<String>,
pub nested_separator: Option<String>,
pub key_case: Option<Case>,
pub env_file_path: Option<String>,
pub watch: bool,
}Expand description
§EnvSourceOptions
struct exposes available options for configuring Environmental source.
§Fields
§prefix
Environmental variable key prefix.
This field defaults to Some("NORTH_".to_string()).
§nested_separator
Nested key separator.
This field defaults to Some("__".to_string()).
§key_case
String case to deserialize key to. This must match your struct fields.
This field defaults to Some(Case::Snake).
§env_file_path
Accepts custom env file path to load up.
This field defaults to Some("None".to_string()).
§watch
Enable datasource change watch (Only supports Env and File sources).
This field defaults to false.
Fields§
§prefix: Option<String>Environmental variable key prefix
@defaults to [“NORTH_”]
nested_separator: Option<String>Nested key separator
@defaults to [“__”]
key_case: Option<Case>String case to deserialize key to. This must match your struct fields.
@defaults to Case::Snake
env_file_path: Option<String>Accepts custom env file path to load up
@defaults to None
watch: boolEnable datasource change watch (Only supports Env and File sources)
@defaults to False
Trait Implementations§
Source§impl Clone for EnvSourceOptions
impl Clone for EnvSourceOptions
Source§fn clone(&self) -> EnvSourceOptions
fn clone(&self) -> EnvSourceOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more