pub trait IssueClient: Send {
// Required methods
fn list(&self, owner: &str, repo: &str, state: &str) -> Result<Vec<Issue>>;
fn create(
&self,
owner: &str,
repo: &str,
opts: CreateIssueOptions,
) -> Result<Issue>;
fn close(&self, owner: &str, repo: &str, number: u64) -> Result<()>;
fn comment(
&self,
owner: &str,
repo: &str,
number: u64,
body: &str,
) -> Result<()>;
}Required Methods§
fn list(&self, owner: &str, repo: &str, state: &str) -> Result<Vec<Issue>>
fn create( &self, owner: &str, repo: &str, opts: CreateIssueOptions, ) -> Result<Issue>
fn close(&self, owner: &str, repo: &str, number: u64) -> Result<()>
fn comment( &self, owner: &str, repo: &str, number: u64, body: &str, ) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".