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§
fn current_user(&self) -> RhoResult<GitHubUser>
fn repository( &self, owner: &str, repo: &str, ) -> RhoResult<Option<GitHubRepository>>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".