Struct akita::AkitaConfig
source · [−]pub struct AkitaConfig { /* private fields */ }
Implementations
sourceimpl AkitaConfig
impl AkitaConfig
pub fn default() -> Self
pub fn new(url: String) -> Self
pub fn set_url(self, url: String) -> Self
pub fn url(&self) -> String
pub fn set_username(self, username: String) -> Self
pub fn username(&self) -> String
pub fn set_password(self, password: String) -> Self
pub fn password(&self) -> String
pub fn set_db_name(self, db_name: String) -> Self
pub fn db_name(&self) -> String
pub fn set_port(self, port: u16) -> Self
pub fn port(&self) -> u16
pub fn set_platform(self, platform: &str) -> Self
pub fn platform(&self) -> Platform
pub fn set_ip_or_hostname(self, ip_or_hostname: String) -> Self
pub fn ip_or_hostname(&self) -> String
pub fn set_max_size(self, max_size: u32) -> Self
pub fn max_size(&self) -> u32
pub fn set_connection_timeout(self, connection_timeout: Duration) -> Self
pub fn connection_timeout(&self) -> Duration
pub fn set_min_idle(self, min_idle: Option<u32>) -> Self
pub fn min_idle(&self) -> Option<u32>
pub fn set_log_level(self, level: LogLevel) -> Self
pub fn log_level(&self) -> Option<LogLevel>
Trait Implementations
sourceimpl Clone for AkitaConfig
impl Clone for AkitaConfig
sourcefn clone(&self) -> AkitaConfig
fn clone(&self) -> AkitaConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AkitaConfig
impl Debug for AkitaConfig
sourceimpl From<&AkitaConfig> for OptsBuilder
impl From<&AkitaConfig> for OptsBuilder
sourcefn from(v: &AkitaConfig) -> Self
fn from(v: &AkitaConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for AkitaConfig
impl Send for AkitaConfig
impl Sync for AkitaConfig
impl Unpin for AkitaConfig
impl UnwindSafe for AkitaConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more