Skip to main content

GithubApi

Trait GithubApi 

Source
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§

Source

fn exchange_code(&self, config: &GithubConfig, code: &str) -> Result<String>

Source

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§

Source§

impl GithubApi for HttpGithubApi

Available on non-WebAssembly only.