pub struct Database<'a> {
pub namespace: &'a str,
pub database: &'a str,
pub username: &'a str,
pub password: &'a str,
}
Expand description
Credentials for the database user
Fields§
§namespace: &'a str
The namespace the user has access to
database: &'a str
The database the user has access to
username: &'a str
The username of the database user
password: &'a str
The password of the database user
Trait Implementations§
impl<'a> Copy for Database<'a>
impl Credentials<Signin, Jwt> for Database<'_>
Auto Trait Implementations§
impl<'a> Freeze for Database<'a>
impl<'a> RefUnwindSafe for Database<'a>
impl<'a> Send for Database<'a>
impl<'a> Sync for Database<'a>
impl<'a> Unpin for Database<'a>
impl<'a> UnwindSafe for Database<'a>
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