gitea_client/models/
payload_user.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/// PayloadUser : PayloadUser represents the author or committer of a commit
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PayloadUser {
17    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
18    pub email: Option<String>,
19    /// Full name of the commit author
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
23    pub username: Option<String>,
24}
25
26impl PayloadUser {
27    /// PayloadUser represents the author or committer of a commit
28    pub fn new() -> PayloadUser {
29        PayloadUser {
30            email: None,
31            name: None,
32            username: None,
33        }
34    }
35}
36