pub struct HttpAuth {
pub scheme: String,
pub credentials: HttpCredentials,
}Expand description
HTTP authentication with a named scheme (e.g. “bearer”, “basic”).
Fields§
§scheme: StringThe authentication scheme name.
credentials: HttpCredentialsThe credentials for this scheme.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpAuth
impl<'de> Deserialize<'de> for HttpAuth
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
Auto Trait Implementations§
impl Freeze for HttpAuth
impl RefUnwindSafe for HttpAuth
impl Send for HttpAuth
impl Sync for HttpAuth
impl Unpin for HttpAuth
impl UnwindSafe for HttpAuth
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