pub struct HttpCredentials {
pub username: Option<String>,
pub password: Option<String>,
pub token: Option<String>,
}Expand description
Represents the secret token value for HTTP authentication, like user name, password, oauth token, etc.
Fields§
§username: Option<String>§password: Option<String>§token: Option<String>Trait Implementations§
Source§impl Clone for HttpCredentials
impl Clone for HttpCredentials
Source§fn clone(&self) -> HttpCredentials
fn clone(&self) -> HttpCredentials
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpCredentials
impl Debug for HttpCredentials
Source§impl Default for HttpCredentials
impl Default for HttpCredentials
Source§fn default() -> HttpCredentials
fn default() -> HttpCredentials
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpCredentials
impl RefUnwindSafe for HttpCredentials
impl Send for HttpCredentials
impl Sync for HttpCredentials
impl Unpin for HttpCredentials
impl UnwindSafe for HttpCredentials
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