pub trait CommentApi {
// Required methods
fn create_comment(
&self,
request: CreateCommentRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<CreateCommentResponse>> + Send;
fn get_comments(
&self,
request: GetCommentsRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<GetCommentsResponse>> + Send;
fn update_comment(
&self,
request: UpdateCommentRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<UpdateCommentResponse>> + Send;
fn delete_comment(
&self,
request: DeleteCommentRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<DeleteCommentResponse>> + Send;
}Required Methods§
Sourcefn create_comment(
&self,
request: CreateCommentRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<CreateCommentResponse>> + Send
fn create_comment( &self, request: CreateCommentRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<CreateCommentResponse>> + Send
添加评论 该接口用于在指定工作项下添加一条评论,添加的评论内容会出现在工作项详情页——评论/备注tab页中,并会显示该评论由插件添加。
Sourcefn get_comments(
&self,
request: GetCommentsRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<GetCommentsResponse>> + Send
fn get_comments( &self, request: GetCommentsRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<GetCommentsResponse>> + Send
获取评论 该接口用于获取指定工作项下的所有评论信息
Sourcefn update_comment(
&self,
request: UpdateCommentRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<UpdateCommentResponse>> + Send
fn update_comment( &self, request: UpdateCommentRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<UpdateCommentResponse>> + Send
更新评论 该接口用于对指定评论更新其内容,被更新的评论会显示该评论由插件添加。
Sourcefn delete_comment(
&self,
request: DeleteCommentRequest,
auth: AuthType,
) -> impl Future<Output = ApiResult<DeleteCommentResponse>> + Send
fn delete_comment( &self, request: DeleteCommentRequest, auth: AuthType, ) -> impl Future<Output = ApiResult<DeleteCommentResponse>> + Send
删除评论 该接口用于删除工作项下一条指定的评论信息
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.