#[non_exhaustive]pub struct DatabaseCredentials {
pub username: SecretString,
pub password: SecretString,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.username: SecretString§password: SecretStringTrait Implementations§
Source§impl Clone for DatabaseCredentials
impl Clone for DatabaseCredentials
Source§impl Debug for DatabaseCredentials
impl Debug for DatabaseCredentials
Source§impl<'de> Deserialize<'de> for DatabaseCredentials
impl<'de> Deserialize<'de> for DatabaseCredentials
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for DatabaseCredentials
impl Drop for DatabaseCredentials
Source§impl From<(SecretBox<str>, SecretBox<str>)> for DatabaseCredentials
impl From<(SecretBox<str>, SecretBox<str>)> for DatabaseCredentials
Source§fn from((username, password): (SecretString, SecretString)) -> Self
fn from((username, password): (SecretString, SecretString)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabaseCredentials
impl RefUnwindSafe for DatabaseCredentials
impl Send for DatabaseCredentials
impl Sync for DatabaseCredentials
impl Unpin for DatabaseCredentials
impl UnsafeUnpin for DatabaseCredentials
impl UnwindSafe for DatabaseCredentials
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