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