args_api/endpoint/review/
update_review_comment.rs1use serde::{Deserialize, Serialize};
2
3use crate::{endpoint::Endpoint, resource::review::ReviewCommentResource};
4
5pub struct UpdateReviewComment;
6
7impl Endpoint for UpdateReviewComment {
8 const PATH: &'static str = "/repository/{owner}/{repo}/review/{number}/comment/{comment_id}";
9 const METHOD: http::Method = http::Method::PATCH;
10
11 type Request = UpdateReviewCommentRequest;
12 type Response = UpdateReviewCommentResponse;
13}
14
15#[derive(ApiRequest, Debug, Serialize, Deserialize)]
16pub struct UpdateReviewCommentRequest {
17 pub body: String,
18}
19
20pub type UpdateReviewCommentResponse = ReviewCommentResource;