pub struct DbConnect {Show 22 fields
pub kind: DatabaseKind,
pub host: String,
pub port: i64,
pub username: String,
pub password: String,
pub db_name: String,
pub charset: String,
pub ssl_mode: Option<String>,
pub ca_cert: Option<String>,
pub client_cert: Option<String>,
pub client_key: Option<String>,
pub max_connections: Option<i64>,
pub min_connections: Option<i64>,
pub timeout: Option<i64>,
pub service_name: Option<String>,
pub instance: Option<String>,
pub file_dir: PathBuf,
pub file_path: PathBuf,
pub http: Option<String>,
pub region: Option<String>,
pub api: Option<String>,
pub api_token: Option<String>,
}Fields§
§kind: DatabaseKind§host: String§port: i64§username: String§password: String§db_name: String§charset: String§ssl_mode: Option<String>§ca_cert: Option<String>§client_cert: Option<String>§client_key: Option<String>§max_connections: Option<i64>§min_connections: Option<i64>§timeout: Option<i64>§service_name: Option<String>§instance: Option<String>§file_dir: PathBuf§file_path: PathBuf§http: Option<String>§region: Option<String>§api: Option<String>§api_token: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DbConnect
impl<'de> Deserialize<'de> for DbConnect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DbConnect
impl RefUnwindSafe for DbConnect
impl Send for DbConnect
impl Sync for DbConnect
impl Unpin for DbConnect
impl UnsafeUnpin for DbConnect
impl UnwindSafe for DbConnect
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