gitbundle_sdk/models/
action_workflow.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.0.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 ActionWorkflow {
17    #[serde(rename = "model")]
18    pub model: Box<models::ActionModel>,
19    #[serde(
20        rename = "workflow",
21        default,
22        with = "::serde_with::rust::double_option",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub workflow: Option<Option<Box<models::WorkflowModel>>>,
26}
27
28impl ActionWorkflow {
29    pub fn new(model: models::ActionModel) -> ActionWorkflow {
30        ActionWorkflow {
31            model: Box::new(model),
32            workflow: None,
33        }
34    }
35}