MCPcopy Create free account
hub / github.com/1jehuang/jcode / error_code

Function error_code

crates/jcode-base/src/subscription_api.rs:220–225  ·  view source on GitHub ↗
(body: &str)

Source from the content-addressed store, hash-verified

218}
219
220fn error_code(body: &str) -> Option<String> {
221 serde_json::from_str::<ErrorEnvelope>(body)
222 .ok()
223 .and_then(|error| error.code())
224 .map(|code| code.chars().take(80).collect())
225}
226
227pub async fn request_device_authorization(
228 client: &reqwest::Client,

Callers 4

poll_device_token_onceFunction · 0.85
revoke_current_keyFunction · 0.85

Calls 4

codeMethod · 0.80
takeMethod · 0.80
charsMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected