pub struct CommentsService { /* private fields */ }Expand description
评论服务
Implementations§
Source§impl CommentsService
impl CommentsService
pub fn new(config: Config) -> Self
使用共享配置(实验性)
Sourcepub async fn list(
&self,
request: ListCommentsRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<ListCommentsResponse>>
pub async fn list( &self, request: ListCommentsRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<ListCommentsResponse>>
获取云文档所有评论
Sourcepub async fn batch_query(
&self,
request: BatchQueryCommentsRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<BatchQueryCommentsResponse>>
pub async fn batch_query( &self, request: BatchQueryCommentsRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<BatchQueryCommentsResponse>>
批量获取评论
Sourcepub async fn patch(
&self,
request: PatchCommentRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<PatchCommentResponse>>
pub async fn patch( &self, request: PatchCommentRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<PatchCommentResponse>>
解决/恢复评论
Sourcepub async fn create(
&self,
request: CreateCommentRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<CreateCommentResponse>>
pub async fn create( &self, request: CreateCommentRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<CreateCommentResponse>>
添加全文评论
Sourcepub async fn get(
&self,
request: GetCommentRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<GetCommentResponse>>
pub async fn get( &self, request: GetCommentRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<GetCommentResponse>>
获取全文评论
Sourcepub async fn list_replies(
&self,
request: ListRepliesRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<ListRepliesResponse>>
pub async fn list_replies( &self, request: ListRepliesRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<ListRepliesResponse>>
获取回复信息
Sourcepub async fn update_reply(
&self,
request: UpdateReplyRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<UpdateReplyResponse>>
pub async fn update_reply( &self, request: UpdateReplyRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<UpdateReplyResponse>>
更新回复的内容
Sourcepub async fn delete_reply(
&self,
request: DeleteReplyRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<DeleteReplyResponse>>
pub async fn delete_reply( &self, request: DeleteReplyRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<DeleteReplyResponse>>
删除回复
Auto Trait Implementations§
impl Freeze for CommentsService
impl !RefUnwindSafe for CommentsService
impl Send for CommentsService
impl Sync for CommentsService
impl Unpin for CommentsService
impl !UnwindSafe for CommentsService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more