Skip to main content

gitea_client/models/
action_workflow_response.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/// ActionWorkflowResponse : ActionWorkflowResponse returns a ActionWorkflow
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ActionWorkflowResponse {
17    #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
18    pub total_count: Option<i64>,
19    #[serde(rename = "workflows", skip_serializing_if = "Option::is_none")]
20    pub workflows: Option<Vec<models::ActionWorkflow>>,
21}
22
23impl ActionWorkflowResponse {
24    /// ActionWorkflowResponse returns a ActionWorkflow
25    pub fn new() -> ActionWorkflowResponse {
26        ActionWorkflowResponse {
27            total_count: None,
28            workflows: None,
29        }
30    }
31}
32