pub trait GitHubApi {
// Required methods
fn app_slug(&self) -> String;
fn create_issue_comment(
&self,
owner: &str,
repo: &str,
issue_id: i64,
body: &str,
) -> Result<(), GithubError>;
fn list_issue_comments(
&self,
owner: &str,
repo: &str,
issue_id: i64,
) -> Result<Vec<Comment>, GithubError>;
fn update_issue_comment(
&self,
owner: &str,
repo: &str,
comment_id: i64,
body: &str,
) -> Result<(), GithubError>;
}Required Methods§
fn app_slug(&self) -> String
fn create_issue_comment( &self, owner: &str, repo: &str, issue_id: i64, body: &str, ) -> Result<(), GithubError>
fn list_issue_comments( &self, owner: &str, repo: &str, issue_id: i64, ) -> Result<Vec<Comment>, GithubError>
fn update_issue_comment( &self, owner: &str, repo: &str, comment_id: i64, body: &str, ) -> Result<(), GithubError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".