pub trait IssueProvider:
Debug
+ Send
+ Sync {
// Required methods
fn create<'life0, 'async_trait>(
&'life0 self,
args: CreateIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn edit<'life0, 'async_trait>(
&'life0 self,
number: u64,
args: EditIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list<'life0, 'async_trait>(
&'life0 self,
args: ListIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<Paged<IssueData>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn view<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn reopen<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn comment<'life0, 'life1, 'async_trait>(
&'life0 self,
number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommentData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_comments<'life0, 'async_trait>(
&'life0 self,
number: u64,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<Paged<CommentData>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_labels<'life0, 'life1, 'async_trait>(
&'life0 self,
number: u64,
labels: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_label<'life0, 'life1, 'async_trait>(
&'life0 self,
number: u64,
label: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Required Methods§
Sourcefn create<'life0, 'async_trait>(
&'life0 self,
args: CreateIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
args: CreateIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn edit<'life0, 'async_trait>(
&'life0 self,
number: u64,
args: EditIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn edit<'life0, 'async_trait>(
&'life0 self,
number: u64,
args: EditIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn list<'life0, 'async_trait>(
&'life0 self,
args: ListIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<Paged<IssueData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
args: ListIssueArgs,
) -> Pin<Box<dyn Future<Output = Result<Paged<IssueData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn view<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn view<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn close<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn reopen<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reopen<'life0, 'async_trait>(
&'life0 self,
number: u64,
) -> Pin<Box<dyn Future<Output = Result<IssueData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn comment<'life0, 'life1, 'async_trait>(
&'life0 self,
number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommentData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn comment<'life0, 'life1, 'async_trait>(
&'life0 self,
number: u64,
body: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommentData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn list_comments<'life0, 'async_trait>(
&'life0 self,
number: u64,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<Paged<CommentData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_comments<'life0, 'async_trait>(
&'life0 self,
number: u64,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<Paged<CommentData>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
列出指定 Issue 的评论。
limit 为 None 时取至 crate::paging::DEFAULT_LIST_LIMIT。
§Errors
当 Issue 不存在或平台 API 调用失败时返回错误。
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".