Skip to main content

gitea_client/models/
create_action_workflow_dispatch.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.25.2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CreateActionWorkflowDispatch : CreateActionWorkflowDispatch represents the payload for triggering a workflow dispatch event
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateActionWorkflowDispatch {
17    #[serde(rename = "inputs", skip_serializing_if = "Option::is_none")]
18    pub inputs: Option<std::collections::HashMap<String, String>>,
19    #[serde(rename = "ref")]
20    pub r#ref: String,
21}
22
23impl CreateActionWorkflowDispatch {
24    /// CreateActionWorkflowDispatch represents the payload for triggering a workflow dispatch event
25    pub fn new(r#ref: String) -> CreateActionWorkflowDispatch {
26        CreateActionWorkflowDispatch {
27            inputs: None,
28            r#ref,
29        }
30    }
31}
32