pub struct HttpCredentials {
pub username: String,
pub password: String,
pub token: String,
pub extra: Extra,
}Expand description
The secrets of an HTTP credential: a username and password for basic auth, or a token for bearer auth. Empty fields are omitted when written.
Fields§
§username: String"username": the basic-auth user name.
password: String"password": the basic-auth password.
token: String"token": the bearer (or other scheme) token.
extra: ExtraUnknown keys, written back after the fields.
Trait Implementations§
Source§impl Clone for HttpCredentials
impl Clone for HttpCredentials
Source§impl Debug for HttpCredentials
Password, token and the values in extra are redacted.
impl Debug for HttpCredentials
Password, token and the values in extra are redacted.
Source§impl Default for HttpCredentials
impl Default for HttpCredentials
Source§impl<'de> Deserialize<'de> for HttpCredentials
impl<'de> Deserialize<'de> for HttpCredentials
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HttpCredentials
impl PartialEq for HttpCredentials
Auto Trait Implementations§
impl Forget for HttpCredentials
impl Freeze for HttpCredentials
impl Move for HttpCredentials
impl RefUnwindSafe for HttpCredentials
impl Send for HttpCredentials
impl Sync for HttpCredentials
impl Unpin for HttpCredentials
impl UnsafeUnpin 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