pub struct ParsedUrl {
pub driver: Driver,
pub user: Option<String>,
pub password: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub database: Option<String>,
pub params: HashMap<String, String>,
}Expand description
A parsed database URL.
Fields§
§driver: DriverDatabase driver.
user: Option<String>Username (if any).
password: Option<String>Password (if any).
host: Option<String>Host (for network databases).
port: Option<u16>Port (for network databases).
database: Option<String>Database name or file path.
params: HashMap<String, String>Query parameters.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedUrl
impl RefUnwindSafe for ParsedUrl
impl Send for ParsedUrl
impl Sync for ParsedUrl
impl Unpin for ParsedUrl
impl UnwindSafe for ParsedUrl
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