pub enum MySQLCreds {
Url(Box<str>),
Host {
host: Box<str>,
port: u16,
user: Option<Box<str>>,
password: Option<Box<str>>,
database: Box<str>,
ssl: MySQLSslMode,
},
}Expand description
MySQL credentials. Both Rust adapters consume the same resolved shape;
Driver selects the concrete connection effect later.
Variants§
Trait Implementations§
Source§impl Clone for MySQLCreds
impl Clone for MySQLCreds
Auto Trait Implementations§
impl Freeze for MySQLCreds
impl RefUnwindSafe for MySQLCreds
impl Send for MySQLCreds
impl Sync for MySQLCreds
impl Unpin for MySQLCreds
impl UnsafeUnpin for MySQLCreds
impl UnwindSafe for MySQLCreds
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