1 viewer
rust 1,859,968 · typescript 235,218 · javascript 132,952 · python 20,426 · 6,406 files · digest c536f05fc420 · built in 1.4 s · crystals off
crates/cre8-app-social/src/bot/reddit/auth.rs
Items
const TOKEN_URL const TOKEN_MARGIN struct RedditCredentials impl RedditCredentials struct TokenResponse struct CachedToken struct RedditAuth impl RedditAuth
Functions
By call-graph weight (PageRank; 1.0 is the average function). 10 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| RedditAuth::access_tokensrc/bot/reddit/auth.rs:104 | method | 15 | 3 | 20 | 1 | 4.1 | |
| RedditAuth::fetch_tokensrc/bot/reddit/auth.rs:128 | method | 52 | 3 | 1 | 5 | 4 | |
| RedditCredentials::from_envsrc/bot/reddit/auth.rs:29 | method | 11 | 1 | 5 | 2 | 2.1 | |
| RedditAuth::newsrc/bot/reddit/auth.rs:100 | method | 3 | 1 | 5 | 0 | 1.3 | |
| token_urlsrc/bot/reddit/auth.rs:15 | fn | 3 | 1 | 1 | 1 | 1.2 | |
| RedditCredentials::resolvesrc/bot/reddit/auth.rs:47 | method | 31 | 4 | 2 | 3 | 0.8 | |
| RedditAuth::usernamesrc/bot/reddit/auth.rs:124 | method | 3 | 1 | 1 | 0 | 0.6 | |
| RedditAuth::user_agentsrc/bot/reddit/auth.rs:120 | method | 3 | 1 | 0 | 0 | 0.5 | |
| percent_encoding_handles_special_charssrc/bot/reddit/auth.rs:190 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| credentials_from_env_returns_none_when_missingsrc/bot/reddit/auth.rs:198 | fn | 5 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.