pub struct EnvConfig { /* private fields */ }Implementations§
Source§impl EnvConfig
impl EnvConfig
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_mut_mysql_instances(&mut self) -> &mut Vec<MySqlInstanceConfig>
pub fn set_mysql_instances( &mut self, val: Vec<MySqlInstanceConfig>, ) -> &mut Self
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_mut_redis_instances(&mut self) -> &mut Vec<RedisInstanceConfig>
pub fn set_redis_instances( &mut self, val: Vec<RedisInstanceConfig>, ) -> &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