pub struct CreateCommentRequest { /* private fields */ }Expand description
创建评论请求
Implementations§
Source§impl CreateCommentRequest
impl CreateCommentRequest
Sourcepub fn reply_to_comment_id(self, comment_id: impl Into<String>) -> Self
pub fn reply_to_comment_id(self, comment_id: impl Into<String>) -> Self
设置被回复评论的 ID。
Sourcepub fn resource_type(self, resource_type: impl Into<String>) -> Self
pub fn resource_type(self, resource_type: impl Into<String>) -> Self
设置资源类型。
Sourcepub fn resource_id(self, resource_id: impl Into<String>) -> Self
pub fn resource_id(self, resource_id: impl Into<String>) -> Self
设置资源 ID。
Sourcepub fn user_id_type(self, user_id_type: impl Into<String>) -> Self
pub fn user_id_type(self, user_id_type: impl Into<String>) -> Self
设置用户 ID 类型。
Sourcepub async fn execute(self) -> SDKResult<CreateCommentResponse>
pub async fn execute(self) -> SDKResult<CreateCommentResponse>
执行请求
Sourcepub async fn execute_with_options(
self,
option: RequestOption,
) -> SDKResult<CreateCommentResponse>
pub async fn execute_with_options( self, option: RequestOption, ) -> SDKResult<CreateCommentResponse>
执行请求(带选项)
Trait Implementations§
Source§impl Clone for CreateCommentRequest
impl Clone for CreateCommentRequest
Source§fn clone(&self) -> CreateCommentRequest
fn clone(&self) -> CreateCommentRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CreateCommentRequest
impl !UnwindSafe for CreateCommentRequest
impl Freeze for CreateCommentRequest
impl Send for CreateCommentRequest
impl Sync for CreateCommentRequest
impl Unpin for CreateCommentRequest
impl UnsafeUnpin for CreateCommentRequest
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