pub struct BearerAuth { /* private fields */ }Expand description
HTTP Bearer Token Authentication credentials.
Generates Authorization: Bearer <token> headers.
§Security
The Debug and Display implementations redact the token.
The raw token is never exposed in error messages or logs.
§Validation
- CR (
\r) and LF (\n) characters are rejected to prevent header injection. - No token format assumptions beyond header safety.
Implementations§
Source§impl BearerAuth
impl BearerAuth
Trait Implementations§
Source§impl Clone for BearerAuth
impl Clone for BearerAuth
Source§impl Debug for BearerAuth
impl Debug for BearerAuth
Auto Trait Implementations§
impl Freeze for BearerAuth
impl RefUnwindSafe for BearerAuth
impl Send for BearerAuth
impl Sync for BearerAuth
impl Unpin for BearerAuth
impl UnsafeUnpin for BearerAuth
impl UnwindSafe for BearerAuth
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