gitea_rs/models/
create_pull_review_comment.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// CreatePullReviewComment : CreatePullReviewComment represent a review comment for creation api
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct CreatePullReviewComment {
17    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
18    pub body: Option<String>,
19    /// if comment to new file line or 0
20    #[serde(rename = "new_position", skip_serializing_if = "Option::is_none")]
21    pub new_position: Option<i64>,
22    /// if comment to old file line or 0
23    #[serde(rename = "old_position", skip_serializing_if = "Option::is_none")]
24    pub old_position: Option<i64>,
25    /// the tree path
26    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
27    pub path: Option<String>,
28}
29
30impl CreatePullReviewComment {
31    /// CreatePullReviewComment represent a review comment for creation api
32    pub fn new() -> CreatePullReviewComment {
33        CreatePullReviewComment {
34            body: None,
35            new_position: None,
36            old_position: None,
37            path: None,
38        }
39    }
40}
41
42