pub struct BasicCredentials {
pub username: String,
pub password: SecretString,
}Expand description
HTTP Basic credential pair; password is redacted in
fmt::Debug and zeroed on drop.
Fields§
§username: String§password: SecretStringImplementations§
Trait Implementations§
Source§impl Clone for BasicCredentials
impl Clone for BasicCredentials
Source§fn clone(&self) -> BasicCredentials
fn clone(&self) -> BasicCredentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BasicCredentials
impl Debug for BasicCredentials
impl Eq for BasicCredentials
Source§impl PartialEq for BasicCredentials
impl PartialEq for BasicCredentials
Auto Trait Implementations§
impl Freeze for BasicCredentials
impl RefUnwindSafe for BasicCredentials
impl Send for BasicCredentials
impl Sync for BasicCredentials
impl Unpin for BasicCredentials
impl UnsafeUnpin for BasicCredentials
impl UnwindSafe for BasicCredentials
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