Skip to main content

tapis_workflows/models/
req_create_secret.rs

1/*
2 * Tapis Workflows API
3 *
4 * Create and manage pipelines
5 *
6 * The version of the OpenAPI document: 1.6.0
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReqCreateSecret {
16    #[serde(rename = "id")]
17    pub id: String,
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    #[serde(rename = "data")]
21    pub data: serde_json::Value,
22}
23
24impl ReqCreateSecret {
25    pub fn new(id: String, data: serde_json::Value) -> ReqCreateSecret {
26        ReqCreateSecret {
27            id,
28            description: None,
29            data,
30        }
31    }
32}