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§

source

fn get_use_logger(&self) -> bool

source

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
source

fn get_log_use_ansi(&self) -> bool

source

fn get_log_file_enabled(&self) -> bool

source

fn get_log_file_path(&self) -> Option<String>

source

fn get_log_file_rotate_directory(&self) -> Option<String>

source

fn get_foundation_cloud_env_mode(&self) -> FoundationCloudMode

source

fn get_catlib_gql_url(&self) -> String

source

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

Implementors§