Skip to main content

gitea_client/models/
action_task.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/// ActionTask : ActionTask represents a ActionTask
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ActionTask {
17    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
18    pub created_at: Option<String>,
19    /// DisplayTitle is the display title for the workflow run
20    #[serde(rename = "display_title", skip_serializing_if = "Option::is_none")]
21    pub display_title: Option<String>,
22    /// Event is the type of event that triggered the workflow
23    #[serde(rename = "event", skip_serializing_if = "Option::is_none")]
24    pub event: Option<String>,
25    /// HeadBranch is the branch that triggered the workflow
26    #[serde(rename = "head_branch", skip_serializing_if = "Option::is_none")]
27    pub head_branch: Option<String>,
28    /// HeadSHA is the commit SHA that triggered the workflow
29    #[serde(rename = "head_sha", skip_serializing_if = "Option::is_none")]
30    pub head_sha: Option<String>,
31    /// ID is the unique identifier for the action task
32    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
33    pub id: Option<i64>,
34    /// Name is the name of the workflow
35    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
36    pub name: Option<String>,
37    /// RunNumber is the sequential number of the workflow run
38    #[serde(rename = "run_number", skip_serializing_if = "Option::is_none")]
39    pub run_number: Option<i64>,
40    #[serde(rename = "run_started_at", skip_serializing_if = "Option::is_none")]
41    pub run_started_at: Option<String>,
42    /// Status indicates the current status of the workflow run
43    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
44    pub status: Option<String>,
45    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
46    pub updated_at: Option<String>,
47    /// URL is the API URL for this workflow run
48    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
49    pub url: Option<String>,
50    /// WorkflowID is the identifier of the workflow
51    #[serde(rename = "workflow_id", skip_serializing_if = "Option::is_none")]
52    pub workflow_id: Option<String>,
53}
54
55impl ActionTask {
56    /// ActionTask represents a ActionTask
57    pub fn new() -> ActionTask {
58        ActionTask {
59            created_at: None,
60            display_title: None,
61            event: None,
62            head_branch: None,
63            head_sha: None,
64            id: None,
65            name: None,
66            run_number: None,
67            run_started_at: None,
68            status: None,
69            updated_at: None,
70            url: None,
71            workflow_id: None,
72        }
73    }
74}
75