gitea_rs/models/
create_gpg_key_option.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// CreateGpgKeyOption : CreateGPGKeyOption options create user GPG key
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct CreateGpgKeyOption {
17    /// An armored GPG key to add
18    #[serde(rename = "armored_public_key")]
19    pub armored_public_key: String,
20    #[serde(rename = "armored_signature", skip_serializing_if = "Option::is_none")]
21    pub armored_signature: Option<String>,
22}
23
24impl CreateGpgKeyOption {
25    /// CreateGPGKeyOption options create user GPG key
26    pub fn new(armored_public_key: String) -> CreateGpgKeyOption {
27        CreateGpgKeyOption {
28            armored_public_key,
29            armored_signature: None,
30        }
31    }
32}
33
34