pub struct MysqlUrl { /* private fields */ }
Expand description
Wraps a connection url and exposes the parsing logic used by quaint, including default values.
Implementations§
Source§impl MysqlUrl
impl MysqlUrl
Sourcepub fn new(url: Url) -> Result<Self, Error>
pub fn new(url: Url) -> Result<Self, Error>
Parse Url
to MysqlUrl
. Returns error for mistyped connection
parameters.
Sourcepub fn host(&self) -> &str
pub fn host(&self) -> &str
The database host. If socket
and host
are not set, defaults to localhost
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MysqlUrl
impl RefUnwindSafe for MysqlUrl
impl Send for MysqlUrl
impl Sync for MysqlUrl
impl Unpin for MysqlUrl
impl UnwindSafe for MysqlUrl
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