pub struct Database {Show 14 fields
pub url: String,
pub migration_path: String,
pub model_path: String,
pub max_connections: u32,
pub min_connections: u32,
pub connect_timeout: u64,
pub idle_timeout: u64,
pub acquire_timeout: u64,
pub max_lifetime: u64,
pub sqlx_logging: bool,
pub sqlx_logging_level: LevelFilter,
pub sqlx_slow_statements_logging_level: LevelFilter,
pub sqlx_slow_statements_logging_threshold: u64,
pub test_before_acquire: bool,
}Fields§
§url: String§migration_path: String§model_path: String§max_connections: u32§min_connections: u32§connect_timeout: u64§idle_timeout: u64§acquire_timeout: u64§max_lifetime: u64§sqlx_logging: bool§sqlx_logging_level: LevelFilter§sqlx_slow_statements_logging_level: LevelFilter§sqlx_slow_statements_logging_threshold: u64§test_before_acquire: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Database
impl<'de> Deserialize<'de> for Database
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 Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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