pub enum TokenKind {
GithubClassic,
GithubFineGrained,
GithubOauth,
OpenAi,
Anthropic,
Slack,
AwsAccessKey,
GoogleApiKey,
GitlabToken,
PrivateKey,
Jwt,
}Expand description
Known token formats.
Variants§
GithubClassic
ghp_...
GithubFineGrained
github_pat_...
GithubOauth
gho_...
OpenAi
sk-...
Anthropic
sk-ant-...
Slack
xoxa-, xoxb-, xoxp-, xoxo-, xoxs-, xoxr-
AwsAccessKey
AKIA followed by 16 upper-case letters or digits.
GoogleApiKey
AIza...
GitlabToken
glpat-...
PrivateKey
-----BEGIN ... PRIVATE KEY-----
Jwt
Three base64url segments, the first two JSON objects (eyJ).
Implementations§
Trait Implementations§
impl Copy for TokenKind
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Forget for TokenKind
impl Freeze for TokenKind
impl Move for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.