openapi_github/models/
users_update_authenticated_request.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UsersUpdateAuthenticatedRequest {
16    /// The new name of the user.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// The publicly visible email address of the user.
20    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
21    pub email: Option<String>,
22    /// The new blog URL of the user.
23    #[serde(rename = "blog", skip_serializing_if = "Option::is_none")]
24    pub blog: Option<String>,
25    /// The new Twitter username of the user.
26    #[serde(rename = "twitter_username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub twitter_username: Option<Option<String>>,
28    /// The new company of the user.
29    #[serde(rename = "company", skip_serializing_if = "Option::is_none")]
30    pub company: Option<String>,
31    /// The new location of the user.
32    #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
33    pub location: Option<String>,
34    /// The new hiring availability of the user.
35    #[serde(rename = "hireable", skip_serializing_if = "Option::is_none")]
36    pub hireable: Option<bool>,
37    /// The new short biography of the user.
38    #[serde(rename = "bio", skip_serializing_if = "Option::is_none")]
39    pub bio: Option<String>,
40}
41
42impl UsersUpdateAuthenticatedRequest {
43    pub fn new() -> UsersUpdateAuthenticatedRequest {
44        UsersUpdateAuthenticatedRequest {
45            name: None,
46            email: None,
47            blog: None,
48            twitter_username: None,
49            company: None,
50            location: None,
51            hireable: None,
52            bio: None,
53        }
54    }
55}
56