Skip to main content

gitbundle_sdk/models/
release_create_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
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 ReleaseCreateInput {
17    #[serde(rename = "bypass_rules")]
18    pub bypass_rules: bool,
19    #[serde(rename = "description")]
20    pub description: String,
21    #[serde(rename = "is_draft")]
22    pub is_draft: bool,
23    #[serde(rename = "is_prerelease")]
24    pub is_prerelease: bool,
25    #[serde(rename = "tag_name")]
26    pub tag_name: String,
27    #[serde(rename = "target")]
28    pub target: String,
29    #[serde(rename = "title")]
30    pub title: String,
31}
32
33impl ReleaseCreateInput {
34    pub fn new(
35        bypass_rules: bool,
36        description: String,
37        is_draft: bool,
38        is_prerelease: bool,
39        tag_name: String,
40        target: String,
41        title: String,
42    ) -> ReleaseCreateInput {
43        ReleaseCreateInput {
44            bypass_rules,
45            description,
46            is_draft,
47            is_prerelease,
48            tag_name,
49            target,
50            title,
51        }
52    }
53}