gitea_client/models/
action_variable.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ActionVariable : ActionVariable return value of the query API
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ActionVariable {
17    /// the value of the variable
18    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
19    pub data: Option<String>,
20    /// the name of the variable
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// the owner to which the variable belongs
24    #[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")]
25    pub owner_id: Option<i64>,
26    /// the repository to which the variable belongs
27    #[serde(rename = "repo_id", skip_serializing_if = "Option::is_none")]
28    pub repo_id: Option<i64>,
29}
30
31impl ActionVariable {
32    /// ActionVariable return value of the query API
33    pub fn new() -> ActionVariable {
34        ActionVariable {
35            data: None,
36            name: None,
37            owner_id: None,
38            repo_id: None,
39        }
40    }
41}
42