pub struct HttpAuthBasic {
pub username: String,
pub password: SecretString,
}Expand description
HTTP Basic credential pair; password is redacted in
fmt::Debug and zeroed on drop.
Fields§
§username: StringThe username, in clear.
password: SecretStringThe password, redacted in fmt::Debug and zeroed on drop.
Implementations§
Trait Implementations§
Source§impl Clone for HttpAuthBasic
impl Clone for HttpAuthBasic
Source§fn clone(&self) -> HttpAuthBasic
fn clone(&self) -> HttpAuthBasic
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 HttpAuthBasic
impl Debug for HttpAuthBasic
impl Eq for HttpAuthBasic
Auto Trait Implementations§
impl Freeze for HttpAuthBasic
impl RefUnwindSafe for HttpAuthBasic
impl Send for HttpAuthBasic
impl Sync for HttpAuthBasic
impl Unpin for HttpAuthBasic
impl UnsafeUnpin for HttpAuthBasic
impl UnwindSafe for HttpAuthBasic
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