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§
Sourcefn 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 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]