pub struct DatabaseCreds {
pub username: String,
pub password: String,
pub duration: Duration,
}Expand description
This struct holds Database Credentials returned by vault
Fields§
§username: StringThe username to use when logging in to the database
password: StringThe password to use when logging in to the database
duration: DurationThe duration for which these credentials are valid for
Trait Implementations§
Source§impl Debug for DatabaseCreds
impl Debug for DatabaseCreds
Auto Trait Implementations§
impl Freeze for DatabaseCreds
impl RefUnwindSafe for DatabaseCreds
impl Send for DatabaseCreds
impl Sync for DatabaseCreds
impl Unpin for DatabaseCreds
impl UnsafeUnpin for DatabaseCreds
impl UnwindSafe for DatabaseCreds
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