pub struct DbConfig {
pub vendor: DatabaseType,
pub host: String,
pub port: u16,
pub database: String,
pub username: String,
pub password: String,
}Fields§
§vendor: DatabaseType§host: String§port: u16§database: String§username: String§password: StringImplementations§
Source§impl DbConfig
impl DbConfig
pub async fn connect_raw( &self, ) -> Result<(Client, Connection<Socket, NoTlsStream>), PostgresError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DbConfig
impl<'de> Deserialize<'de> for DbConfig
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 Forget for DbConfig
impl Freeze for DbConfig
impl Move for DbConfig
impl RefUnwindSafe for DbConfig
impl Send for DbConfigwhere
RawVecInner: Send,
impl Sync for DbConfigwhere
RawVecInner: Sync,
impl Unpin for DbConfig
impl UnsafeUnpin for DbConfig
impl UnwindSafe for DbConfigwhere
RawVecInner: UnwindSafe,
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