#[non_exhaustive]pub enum TokenTypeHint {
AccessToken,
RefreshToken,
}Expand description
What kind of token revoke_token revokes. Discord revokes
every token of the authorization either way.
discord.js counterpart: the token_type_hint of RESTPostOAuth2TokenRevocationQuery (discord-api-types).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for TokenTypeHint
impl Clone for TokenTypeHint
impl Copy for TokenTypeHint
Source§impl Debug for TokenTypeHint
impl Debug for TokenTypeHint
impl Eq for TokenTypeHint
Source§impl Hash for TokenTypeHint
impl Hash for TokenTypeHint
Source§impl PartialEq for TokenTypeHint
impl PartialEq for TokenTypeHint
impl StructuralPartialEq for TokenTypeHint
Auto Trait Implementations§
impl Freeze for TokenTypeHint
impl RefUnwindSafe for TokenTypeHint
impl Send for TokenTypeHint
impl Sync for TokenTypeHint
impl Unpin for TokenTypeHint
impl UnsafeUnpin for TokenTypeHint
impl UnwindSafe for TokenTypeHint
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.