pub struct BearerToken(/* private fields */);Expand description
A bearer credential, kept out of anything that prints.
Implementations§
Source§impl BearerToken
impl BearerToken
pub fn new(token: &str) -> Result<Self, InvalidToken>
Trait Implementations§
Source§impl Clone for BearerToken
impl Clone for BearerToken
Auto Trait Implementations§
impl !Freeze for BearerToken
impl Forget for BearerToken
impl Move 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