Skip to main content

IssueClient

Trait IssueClient 

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

Source

fn list(&self, owner: &str, repo: &str, state: &str) -> Result<Vec<Issue>>

Source

fn create( &self, owner: &str, repo: &str, opts: CreateIssueOptions, ) -> Result<Issue>

Source

fn close(&self, owner: &str, repo: &str, number: u64) -> Result<()>

Source

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".

Implementors§