pub struct BearerCredential { /* private fields */ }Expand description
Initial bearer token and its immutable authentication scope.
Implementations§
Source§impl BearerCredential
impl BearerCredential
Sourcepub const fn new(token: BearerToken, scope: BearerCredentialScope) -> Self
pub const fn new(token: BearerToken, scope: BearerCredentialScope) -> Self
Binds a validated token to an immutable scope.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BearerCredential
impl RefUnwindSafe for BearerCredential
impl Send for BearerCredential
impl Sync for BearerCredential
impl Unpin for BearerCredential
impl UnsafeUnpin for BearerCredential
impl UnwindSafe for BearerCredential
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