Skip to main content

GitHubAccountProvider

Trait GitHubAccountProvider 

Source
pub trait GitHubAccountProvider {
    // Required methods
    fn current_user(&self) -> RhoResult<GitHubUser>;
    fn repository(
        &self,
        owner: &str,
        repo: &str,
    ) -> RhoResult<Option<GitHubRepository>>;

    // Provided method
    fn repository_exists(&self, owner: &str, repo: &str) -> RhoResult<bool> { ... }
}

Required Methods§

Provided Methods§

Source

fn repository_exists(&self, owner: &str, repo: &str) -> RhoResult<bool>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§