Skip to main content

gitbundle_sdk/models/
action_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 ActionCreateInput {
17    #[serde(rename = "description")]
18    pub description: String,
19    #[serde(rename = "disabled")]
20    pub disabled: bool,
21    #[serde(rename = "identifier")]
22    pub identifier: String,
23    #[serde(rename = "yaml_path")]
24    pub yaml_path: String,
25}
26
27impl ActionCreateInput {
28    pub fn new(
29        description: String,
30        disabled: bool,
31        identifier: String,
32        yaml_path: String,
33    ) -> ActionCreateInput {
34        ActionCreateInput {
35            description,
36            disabled,
37            identifier,
38            yaml_path,
39        }
40    }
41}