Skip to main content

gitea_client/models/
action_workflow.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/// ActionWorkflow : ActionWorkflow represents a ActionWorkflow
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ActionWorkflow {
17    /// BadgeURL is the URL for the workflow badge
18    #[serde(rename = "badge_url", skip_serializing_if = "Option::is_none")]
19    pub badge_url: Option<String>,
20    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<String>,
22    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
23    pub deleted_at: Option<String>,
24    /// HTMLURL is the web URL for viewing the workflow
25    #[serde(rename = "html_url", skip_serializing_if = "Option::is_none")]
26    pub html_url: Option<String>,
27    /// ID is the unique identifier for the workflow
28    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
29    pub id: Option<String>,
30    /// Name is the name of the workflow
31    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
32    pub name: Option<String>,
33    /// Path is the file path of the workflow
34    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
35    pub path: Option<String>,
36    /// State indicates if the workflow is active or disabled
37    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
38    pub state: Option<String>,
39    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
40    pub updated_at: Option<String>,
41    /// URL is the API URL for this workflow
42    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
43    pub url: Option<String>,
44}
45
46impl ActionWorkflow {
47    /// ActionWorkflow represents a ActionWorkflow
48    pub fn new() -> ActionWorkflow {
49        ActionWorkflow {
50            badge_url: None,
51            created_at: None,
52            deleted_at: None,
53            html_url: None,
54            id: None,
55            name: None,
56            path: None,
57            state: None,
58            updated_at: None,
59            url: None,
60        }
61    }
62}
63