gitbundle_sdk/models/
pullreq_comment_create_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.2.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PullreqCommentCreateInput {
17    #[serde(rename = "line_end")]
18    pub line_end: i64,
19    #[serde(rename = "line_end_new")]
20    pub line_end_new: bool,
21    #[serde(rename = "line_start")]
22    pub line_start: i64,
23    #[serde(rename = "line_start_new")]
24    pub line_start_new: bool,
25    #[serde(rename = "parent_id")]
26    pub parent_id: i64,
27    #[serde(rename = "path")]
28    pub path: String,
29    #[serde(rename = "source_commit_sha")]
30    pub source_commit_sha: String,
31    #[serde(rename = "target_commit_sha")]
32    pub target_commit_sha: String,
33    #[serde(rename = "text")]
34    pub text: String,
35}
36
37impl PullreqCommentCreateInput {
38    pub fn new(
39        line_end: i64,
40        line_end_new: bool,
41        line_start: i64,
42        line_start_new: bool,
43        parent_id: i64,
44        path: String,
45        source_commit_sha: String,
46        target_commit_sha: String,
47        text: String,
48    ) -> PullreqCommentCreateInput {
49        PullreqCommentCreateInput {
50            line_end,
51            line_end_new,
52            line_start,
53            line_start_new,
54            parent_id,
55            path,
56            source_commit_sha,
57            target_commit_sha,
58            text,
59        }
60    }
61}