gitea_rs/models/gpg_key_email.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/// GpgKeyEmail : GPGKeyEmail an email attached to a GPGKey
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct GpgKeyEmail {
17 #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
18 pub email: Option<String>,
19 #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
20 pub verified: Option<bool>,
21}
22
23impl GpgKeyEmail {
24 /// GPGKeyEmail an email attached to a GPGKey
25 pub fn new() -> GpgKeyEmail {
26 GpgKeyEmail {
27 email: None,
28 verified: None,
29 }
30 }
31}
32
33