pub struct IssuesClient { /* private fields */ }
Expand description
Issues API 客户端
Implementations§
Source§impl IssuesClient
impl IssuesClient
Sourcepub async fn get_repo_issues_number(
&self,
repo: String,
number: i64,
) -> Result<Value>
pub async fn get_repo_issues_number( &self, repo: String, number: i64, ) -> Result<Value>
查询指定的 Issues。Get an issue.
Sourcepub async fn patch_repo_issues_number(
&self,
repo: String,
number: i64,
patch_issue_form: Value,
) -> Result<Value>
pub async fn patch_repo_issues_number( &self, repo: String, number: i64, patch_issue_form: Value, ) -> Result<Value>
更新一个 Issue。Update an issue.
Sourcepub async fn delete_repo_issues_number_labels_name(
&self,
repo: String,
number: i64,
name: String,
) -> Result<Value>
pub async fn delete_repo_issues_number_labels_name( &self, repo: String, number: i64, name: String, ) -> Result<Value>
删除 Issue 标签。Remove a label from an issue.
Sourcepub async fn get_repo_issues_number_assignees(
&self,
repo: String,
number: String,
) -> Result<Value>
pub async fn get_repo_issues_number_assignees( &self, repo: String, number: String, ) -> Result<Value>
查询指定 Issue 的 Assignees。 List repository issue assignees.
Sourcepub async fn post_repo_issues_number_assignees(
&self,
repo: String,
number: String,
post_issue_assignees_form: Value,
) -> Result<Value>
pub async fn post_repo_issues_number_assignees( &self, repo: String, number: String, post_issue_assignees_form: Value, ) -> Result<Value>
添加 Assignees 到指定的 Issue。 Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.
Sourcepub async fn delete_repo_issues_number_assignees(
&self,
repo: String,
number: String,
delete_issue_assignees_form: Value,
) -> Result<Value>
pub async fn delete_repo_issues_number_assignees( &self, repo: String, number: String, delete_issue_assignees_form: Value, ) -> Result<Value>
删除 Issue 中的 Assignees。 Removes one or more assignees from an issue.
Sourcepub async fn patch_repo_issues_number_assignees(
&self,
repo: String,
number: String,
patch_issue_assignees_form: Value,
) -> Result<Value>
pub async fn patch_repo_issues_number_assignees( &self, repo: String, number: String, patch_issue_assignees_form: Value, ) -> Result<Value>
更新 Issue 中的 Assignees。 Updates the assignees of an issue.
Sourcepub async fn get_repo_issues_number_comments(
&self,
repo: String,
number: i64,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_repo_issues_number_comments( &self, repo: String, number: i64, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
查询仓库的 Issue 评论列表。List repository issue comments.
Sourcepub async fn post_repo_issues_number_comments(
&self,
repo: String,
number: i64,
post_issue_comment_form: Value,
) -> Result<Value>
pub async fn post_repo_issues_number_comments( &self, repo: String, number: i64, post_issue_comment_form: Value, ) -> Result<Value>
创建一个 Issue Comment。Create an issue comment.
Sourcepub async fn get_repo_issues_number_assignees_assignee(
&self,
repo: String,
number: String,
assignee: String,
) -> Result<Value>
pub async fn get_repo_issues_number_assignees_assignee( &self, repo: String, number: String, assignee: String, ) -> Result<Value>
检查用户是否可以被添加到 Issue 的 Assignees 中。 Checks if a user can be assigned to an issue.
Sourcepub async fn get_repo_issues(
&self,
repo: String,
page: Option<i64>,
page_size: Option<i64>,
state: Option<String>,
keyword: Option<String>,
priority: Option<String>,
labels: Option<String>,
authors: Option<String>,
assignees: Option<String>,
updated_time_begin: Option<String>,
updated_time_end: Option<String>,
close_time_begin: Option<String>,
close_time_end: Option<String>,
order_by: Option<String>,
) -> Result<Value>
pub async fn get_repo_issues( &self, repo: String, page: Option<i64>, page_size: Option<i64>, state: Option<String>, keyword: Option<String>, priority: Option<String>, labels: Option<String>, authors: Option<String>, assignees: Option<String>, updated_time_begin: Option<String>, updated_time_end: Option<String>, close_time_begin: Option<String>, close_time_end: Option<String>, order_by: Option<String>, ) -> Result<Value>
查询仓库的 Issues。List issues.
Sourcepub async fn post_repo_issues(
&self,
repo: String,
post_issue_form: Value,
) -> Result<Value>
pub async fn post_repo_issues( &self, repo: String, post_issue_form: Value, ) -> Result<Value>
创建一个 Issue。Create an issue.
Sourcepub async fn get_repo_issues_number_labels(
&self,
repo: String,
number: i64,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_repo_issues_number_labels( &self, repo: String, number: i64, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
查询 Issue 的标签(label) 列表。List labels for an issue.
Sourcepub async fn post_repo_issues_number_labels(
&self,
repo: String,
number: i64,
post_issue_labels_form: Value,
) -> Result<Value>
pub async fn post_repo_issues_number_labels( &self, repo: String, number: i64, post_issue_labels_form: Value, ) -> Result<Value>
新增 Issue 标签。Add labels to an issue.
Sourcepub async fn put_repo_issues_number_labels(
&self,
repo: String,
number: i64,
put_issue_labels_form: Value,
) -> Result<Value>
pub async fn put_repo_issues_number_labels( &self, repo: String, number: i64, put_issue_labels_form: Value, ) -> Result<Value>
设置 Issue 标签。 Set the new labels for an issue.
Sourcepub async fn delete_repo_issues_number_labels(
&self,
repo: String,
number: i64,
) -> Result<Value>
pub async fn delete_repo_issues_number_labels( &self, repo: String, number: i64, ) -> Result<Value>
清空 Issue 标签。Remove all labels from an issue.