Skip to main content

fattureincloud_rs/models/
user.rs

1/*
2 * Fatture in Cloud API v2 - API Reference
3 *
4 * Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy.   The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5 *
6 * The version of the OpenAPI document: 2.0.32
7 * Contact: info@fattureincloud.it
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct User {
15    /// User id
16    #[serde(rename = "id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub id: Option<Option<i32>>,
18    /// User full name
19    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub name: Option<Option<String>>,
21    /// User first name
22    #[serde(rename = "first_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub first_name: Option<Option<String>>,
24    /// User last name
25    #[serde(rename = "last_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub last_name: Option<Option<String>>,
27    /// User email address
28    #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub email: Option<Option<String>>,
30    /// User hash
31    #[serde(rename = "hash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
32    pub hash: Option<Option<String>>,
33    /// User picture
34    #[serde(rename = "picture", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
35    pub picture: Option<Option<String>>,
36}
37
38impl User {
39    pub fn new() -> User {
40        User {
41            id: None,
42            name: None,
43            first_name: None,
44            last_name: None,
45            email: None,
46            hash: None,
47            picture: None,
48        }
49    }
50}
51