pub struct EnvConfig { /* private fields */ }Implementations§
Source§impl EnvConfig
impl EnvConfig
pub fn log_config()
Source§impl EnvConfig
impl EnvConfig
pub fn get_db_connection_timeout_millis(&self) -> u64
pub fn get_mut_db_connection_timeout_millis(&mut self) -> &mut u64
pub fn set_db_connection_timeout_millis(&mut self, val: u64) -> &mut Self
pub fn get_db_retry_interval_millis(&self) -> u64
pub fn get_mut_db_retry_interval_millis(&mut self) -> &mut u64
pub fn set_db_retry_interval_millis(&mut self, val: u64) -> &mut Self
pub fn get_gpt_api_url(&self) -> &String
pub fn get_mut_gpt_api_url(&mut self) -> &mut String
pub fn set_gpt_api_url(&mut self, val: String) -> &mut Self
pub fn get_gpt_model(&self) -> &String
pub fn get_mut_gpt_model(&mut self) -> &mut String
pub fn set_gpt_model(&mut self, val: String) -> &mut Self
pub fn get_mysql_instances(&self) -> &Vec<MySqlInstanceConfig>
pub fn get_mut_mysql_instances(&mut self) -> &mut Vec<MySqlInstanceConfig>
pub fn set_mysql_instances( &mut self, val: Vec<MySqlInstanceConfig>, ) -> &mut Self
pub fn get_postgresql_instances(&self) -> &Vec<PostgreSqlInstanceConfig>
pub fn get_mut_postgresql_instances( &mut self, ) -> &mut Vec<PostgreSqlInstanceConfig>
pub fn set_postgresql_instances( &mut self, val: Vec<PostgreSqlInstanceConfig>, ) -> &mut Self
pub fn get_redis_instances(&self) -> &Vec<RedisInstanceConfig>
pub fn get_mut_redis_instances(&mut self) -> &mut Vec<RedisInstanceConfig>
pub fn set_redis_instances( &mut self, val: Vec<RedisInstanceConfig>, ) -> &mut Self
pub fn get_server_port(&self) -> u16
pub fn get_mut_server_port(&mut self) -> &mut u16
pub fn set_server_port(&mut self, val: u16) -> &mut Self
pub fn get_server_host(&self) -> &String
pub fn get_mut_server_host(&mut self) -> &mut String
pub fn set_server_host(&mut self, val: String) -> &mut Self
pub fn get_server_buffer(&self) -> usize
pub fn get_mut_server_buffer(&mut self) -> &mut usize
pub fn set_server_buffer(&mut self, val: usize) -> &mut Self
pub fn get_server_log_size(&self) -> usize
pub fn get_mut_server_log_size(&mut self) -> &mut usize
pub fn set_server_log_size(&mut self, val: usize) -> &mut Self
pub fn get_server_log_dir(&self) -> &String
pub fn get_mut_server_log_dir(&mut self) -> &mut String
pub fn set_server_log_dir(&mut self, val: String) -> &mut Self
pub fn get_server_inner_print(&self) -> bool
pub fn get_mut_server_inner_print(&mut self) -> &mut bool
pub fn set_server_inner_print(&mut self, val: bool) -> &mut Self
pub fn get_server_inner_log(&self) -> bool
pub fn get_mut_server_inner_log(&mut self) -> &mut bool
pub fn set_server_inner_log(&mut self, val: bool) -> &mut Self
pub fn get_server_nodelay(&self) -> Option<bool>
pub fn try_get_server_nodelay(&self) -> Option<bool>
pub fn get_mut_server_nodelay(&mut self) -> &mut Option<bool>
pub fn set_server_nodelay(&mut self, val: Option<bool>) -> &mut Self
pub fn get_server_tti(&self) -> Option<u32>
pub fn try_get_server_tti(&self) -> Option<u32>
pub fn get_mut_server_tti(&mut self) -> &mut Option<u32>
pub fn set_server_tti(&mut self, val: Option<u32>) -> &mut Self
pub fn get_server_pid_file_path(&self) -> &String
pub fn get_mut_server_pid_file_path(&mut self) -> &mut String
pub fn set_server_pid_file_path(&mut self, val: String) -> &mut Self
pub fn get_server_request_http_read_timeout_ms(&self) -> u64
pub fn get_mut_server_request_http_read_timeout_ms(&mut self) -> &mut u64
pub fn set_server_request_http_read_timeout_ms(&mut self, val: u64) -> &mut Self
pub fn get_server_request_max_body_size(&self) -> usize
pub fn get_mut_server_request_max_body_size(&mut self) -> &mut usize
pub fn set_server_request_max_body_size(&mut self, val: usize) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvConfig
impl RefUnwindSafe for EnvConfig
impl Send for EnvConfig
impl Sync for EnvConfig
impl Unpin for EnvConfig
impl UnsafeUnpin for EnvConfig
impl UnwindSafe for EnvConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more