Skip to main content

gitbundle_sdk/models/
workflow_dispatch_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/// WorkflowDispatchInput : GitHub Workflow Dispatch Input definition
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct WorkflowDispatchInput {
18    #[serde(
19        rename = "default",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub default: Option<Option<serde_json::Value>>,
25    /// A string shown to users using the deprecated input
26    #[serde(
27        rename = "deprecationMessage",
28        default,
29        with = "::serde_with::rust::double_option",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub deprecation_message: Option<Option<String>>,
33    /// A string description of the input parameter
34    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
35    pub description: Option<String>,
36    /// Options of dropdown, required if type = choice
37    #[serde(
38        rename = "options",
39        default,
40        with = "::serde_with::rust::double_option",
41        skip_serializing_if = "Option::is_none"
42    )]
43    pub options: Option<Option<Vec<String>>>,
44    /// A boolean to indicate whether the action requires the input parameter. Set to true when the parameter is required.
45    #[serde(
46        rename = "required",
47        default,
48        with = "::serde_with::rust::double_option",
49        skip_serializing_if = "Option::is_none"
50    )]
51    pub required: Option<Option<bool>>,
52    /// A string representing the type of the input.
53    #[serde(
54        rename = "type",
55        default,
56        with = "::serde_with::rust::double_option",
57        skip_serializing_if = "Option::is_none"
58    )]
59    pub r#type: Option<Option<models::WorkflowDispatchInputType>>,
60}
61
62impl WorkflowDispatchInput {
63    /// GitHub Workflow Dispatch Input definition
64    pub fn new() -> WorkflowDispatchInput {
65        WorkflowDispatchInput {
66            default: None,
67            deprecation_message: None,
68            description: None,
69            options: None,
70            required: None,
71            r#type: None,
72        }
73    }
74}