(token: &str)
| 6 | use serde::{Deserialize, Serialize}; |
| 7 | |
| 8 | pub fn github_api(token: &str) -> Result<GithubApi, AppError> { |
| 9 | let client = reqwest::blocking::Client::new(); |
| 10 | Ok(GithubApi { |
| 11 | client, |
| 12 | token: token.to_string(), |
| 13 | }) |
| 14 | } |
| 15 | |
| 16 | pub struct GithubApi { |
| 17 | client: reqwest::blocking::Client, |