pub struct HttpAuth {
pub scheme: String,
pub credentials: HttpCredentials,
pub additional_headers: Option<BTreeMap<String, String>>,
pub extra: Extra,
}Expand description
An HTTP credential: the scheme (e.g. basic, bearer), its secrets and optional extra
request headers.
Fields§
§scheme: StringRequired on decode.
credentials: HttpCredentialsRequired on decode.
additional_headers: Option<BTreeMap<String, String>>“additionalHeaders”, omitzero.
extra: ExtraUnknown keys, written back after the fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpAuth
impl<'de> Deserialize<'de> for HttpAuth
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
Auto Trait Implementations§
impl Forget for HttpAuth
impl Freeze for HttpAuth
impl Move for HttpAuth
impl RefUnwindSafe for HttpAuth
impl Send for HttpAuth
impl Sync for HttpAuth
impl Unpin for HttpAuth
impl UnsafeUnpin 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