Skip to main content

Issue

Trait Issue 

Source
pub trait Issue: Send + Sync {
    // Required methods
    fn create<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
        title: &'life1 str,
        body: Option<&'life2 str>,
        option: Option<CreateOptions>,
    ) -> Pin<Box<dyn Future<Output = Result<IssueInfo, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
    fn info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
        issue_number: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<IssueInfo, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
        options: Option<ListOptions>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<IssueInfo>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn update<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
        issue_number: &'life1 str,
        options: Option<UpdateOptions>,
    ) -> Pin<Box<dyn Future<Output = Result<IssueInfo, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn create<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, repo_path: RepoPath, title: &'life1 str, body: Option<&'life2 str>, option: Option<CreateOptions>, ) -> Pin<Box<dyn Future<Output = Result<IssueInfo, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

创建一个issue

§参数
  • repo_path - 仓库路径
  • title - issue标题
  • body - issue内容
  • option - 创建issue选项, 详见 [CreateIssueOptions]
Source

fn info<'life0, 'life1, 'async_trait>( &'life0 self, repo_path: RepoPath, issue_number: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<IssueInfo, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

获取issue信息

§参数
  • repo_path - 仓库路径
  • issue_number - issue编号
Source

fn list<'life0, 'async_trait>( &'life0 self, repo_path: RepoPath, options: Option<ListOptions>, ) -> Pin<Box<dyn Future<Output = Result<Vec<IssueInfo>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

获取仓库所有issue信息

§参数
  • repo_path - 仓库路径
Source

fn update<'life0, 'life1, 'async_trait>( &'life0 self, repo_path: RepoPath, issue_number: &'life1 str, options: Option<UpdateOptions>, ) -> Pin<Box<dyn Future<Output = Result<IssueInfo, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

更新issue信息

§参数
  • repo_path - 仓库路径
  • issue_number - issue编号
  • options - 更新issue选项, 详见 [UpdateIssueOptions]

Implementors§