pub async fn comment_re(
        &self,
        rid: usize,
        rt: ResourceType,
        re_id: usize,
        cmt: &str,
    ) -> TResult<ApiResponse> {
        let thread_id = format!("{}{}", map_resource_code(rt), rid);

        let u = replace_all_route_params(API_ROUTE["comment"], "reply");
        let r = ApiRequestBuilder::post(&u)
            .add_cookie("os", "pc")
            .set_data(json!({"threadId": thread_id, "content": cmt, "commentId": re_id}))
            .build();

        self.client.request(r).await
    }
/// required
/// rid: resource id
/// rt:  resource type
/// reid: the comment id of reply to
/// cmt: comment body
required
rid: resource id
rt:  resource type
reid: the comment id of reply to
cmt: comment body
required rid : resource id rt : resource type reid : the comment id of reply to cmt : comment body
pub async fn comment_re(
        &self,
        rid: usize,
        rt: ResourceType,
        re_id: usize,
        cmt: &str,
    ) -> TResult<ApiResponse> {
        let thread_id = format!("{}{}", map_resource_code(rt), rid);
        let u = replace_all_route_params(API_ROUTE["comment"], "reply");
        let r = ApiRequestBuilder::post(&u)
            .add_cookie("os", "pc")
            .set_data(json!({"threadId": thread_id, "content": cmt, "commentId": re_id}))
            .build();
        self.client.request(r).await
    }
pub async fn comment_re ( & self , rid : usize , rt : ResourceType , re_id : usize , cmt : & str , ) -> TResult < ApiResponse > { let thread_id = format ! ( " " map_resource_code ( rt ) rid ) ; let u = replace_all_route_params ( API_ROUTE [ " " ] , " " ) ; let r = ApiRequestBuilder :: post ( & u ) . add_cookie ( " " , " " ) . set_data ( json ! ( { " " thread_id " " cmt " " re_id } ) ) . build ( ) ; self . client . request ( r ) . await }
required
rid: resource id
rt:  resource type
reid: the comment id of reply to
cmt: comment body
required rid : resource id rt : resource type reid : the comment id of reply to cmt : comment body
&self
rid
usize
rt
ResourceType
re_id
usize
cmt
&str
&self
rid
usize
rt
ResourceType
re_id
usize
cmt
&str