gitea_client/models/
email.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/// Email : Email an email address belonging to a user
15#[derive(Clone, Default, Debug, PartialEq, 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 = "user_id", skip_serializing_if = "Option::is_none")]
22    pub user_id: Option<i64>,
23    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
24    pub username: Option<String>,
25    #[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
26    pub verified: Option<bool>,
27}
28
29impl Email {
30    /// Email an email address belonging to a user
31    pub fn new() -> Email {
32        Email {
33            email: None,
34            primary: None,
35            user_id: None,
36            username: None,
37            verified: None,
38        }
39    }
40}
41