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