pub struct BearerToken { /* private fields */ }Expand description
Owned bearer authorization value with redacted diagnostics and volatile cleanup of the adapter-owned bytes.
Implementations§
Source§impl BearerToken
impl BearerToken
Sourcepub fn new(token: &str) -> Result<Self, BearerTokenError>
pub fn new(token: &str) -> Result<Self, BearerTokenError>
Validates and copies a bearer token into adapter-owned secret storage.
Trait Implementations§
Source§impl Debug for BearerToken
impl Debug for BearerToken
Source§impl Drop for BearerToken
impl Drop for BearerToken
Auto Trait Implementations§
impl Freeze for BearerToken
impl RefUnwindSafe for BearerToken
impl Send for BearerToken
impl Sync for BearerToken
impl Unpin for BearerToken
impl UnsafeUnpin for BearerToken
impl UnwindSafe for BearerToken
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