pub enum BearerTokenType {
UserToken,
AppAccessToken,
}
Expand description
Types of bearer tokens
Variants§
UserToken
Token for making requests in the context of an authenticated user.
AppAccessToken
Token for server-to-server requests.
In some contexts (i.e EventSub) an App Access Token can be used in the context of users that have authenticated the specific Client ID
Trait Implementations§
Source§impl Clone for BearerTokenType
impl Clone for BearerTokenType
Source§fn clone(&self) -> BearerTokenType
fn clone(&self) -> BearerTokenType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BearerTokenType
impl Debug for BearerTokenType
Source§impl PartialEq for BearerTokenType
impl PartialEq for BearerTokenType
impl Eq for BearerTokenType
impl StructuralPartialEq for BearerTokenType
Auto Trait Implementations§
impl Freeze for BearerTokenType
impl RefUnwindSafe for BearerTokenType
impl Send for BearerTokenType
impl Sync for BearerTokenType
impl Unpin for BearerTokenType
impl UnwindSafe for BearerTokenType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)