Trait wildland_cargo_lib::api::config::CargoCfgProvider
source · pub trait CargoCfgProvider {
// Required methods
fn get_use_logger(&self) -> bool;
fn get_log_level(&self) -> String;
fn get_log_use_ansi(&self) -> bool;
fn get_log_file_enabled(&self) -> bool;
fn get_log_file_path(&self) -> Option<String>;
fn get_log_file_rotate_directory(&self) -> Option<String>;
fn get_foundation_cloud_env_mode(&self) -> FoundationCloudMode;
fn get_catlib_gql_url(&self) -> String;
fn get_redis_url_for_multidevice_state(&self) -> String;
}
Required Methods§
fn get_use_logger(&self) -> bool
sourcefn get_log_level(&self) -> String
fn get_log_level(&self) -> String
Must return one of (case-insensitive):
- “error”
- “warn”
- “info”
- “debug”
- “trace” or number equivalent:
- “1” - error
- “2” - warn
- “3” - info
- “4” - debug
- “5” - trace
fn get_log_use_ansi(&self) -> bool
fn get_log_file_enabled(&self) -> bool
fn get_log_file_path(&self) -> Option<String>
fn get_log_file_rotate_directory(&self) -> Option<String>
fn get_foundation_cloud_env_mode(&self) -> FoundationCloudMode
fn get_catlib_gql_url(&self) -> String
sourcefn get_redis_url_for_multidevice_state(&self) -> String
fn get_redis_url_for_multidevice_state(&self) -> String
Must return a valid Redis URI which is then used as a connection string for the redis Multi-device State backend.
The URI must have the following format
- w/o TLS
redis :// [[username :] password@] host [:port][/database]
[?[timeout=timeout[d|h|m|s|ms|us|ns]]
- w/ TLS
rediss :// [[username :] password@] host [: port][/database]
[?[timeout=timeout[d|h|m|s|ms|us|ns]]
Example:
redis://127.0.0.1:6379/0