pub trait GithubApi: Send + Sync {
// Required methods
fn exchange_code(&self, config: &GithubConfig, code: &str) -> Result<String>;
fn fetch_user(&self, access_token: &str) -> Result<GithubUser>;
}Required Methods§
fn exchange_code(&self, config: &GithubConfig, code: &str) -> Result<String>
fn fetch_user(&self, access_token: &str) -> Result<GithubUser>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl GithubApi for HttpGithubApi
Available on non-WebAssembly only.