gitea_client/models/create_or_update_secret_option.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/// CreateOrUpdateSecretOption : CreateOrUpdateSecretOption options when creating or updating secret
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateOrUpdateSecretOption {
17 /// Data of the secret to update
18 #[serde(rename = "data")]
19 pub data: String,
20}
21
22impl CreateOrUpdateSecretOption {
23 /// CreateOrUpdateSecretOption options when creating or updating secret
24 pub fn new(data: String) -> CreateOrUpdateSecretOption {
25 CreateOrUpdateSecretOption {
26 data,
27 }
28 }
29}
30