btcpay_client/models/
application_user_data.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct ApplicationUserData {
16    /// The id of the user
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// The email of the user
20    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
21    pub email: Option<String>,
22    /// True if the email has been confirmed by the user
23    #[serde(rename = "emailConfirmed", skip_serializing_if = "Option::is_none")]
24    pub email_confirmed: Option<bool>,
25    /// True if the email requires email confirmation to log in
26    #[serde(rename = "requiresEmailConfirmation", skip_serializing_if = "Option::is_none")]
27    pub requires_email_confirmation: Option<bool>,
28    /// The creation date of the user as a unix timestamp. Null if created before v1.0.5.6
29    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
30    pub created: Option<f32>,
31    /// The roles of the user
32    #[serde(rename = "roles", skip_serializing_if = "Option::is_none")]
33    pub roles: Option<Vec<String>>,
34}
35
36impl ApplicationUserData {
37    pub fn new() -> ApplicationUserData {
38        ApplicationUserData {
39            id: None,
40            email: None,
41            email_confirmed: None,
42            requires_email_confirmation: None,
43            created: None,
44            roles: None,
45        }
46    }
47}
48
49