vapi_client/models/
user.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct User {
17    /// This is the unique identifier for the profile or user.
18    #[serde(rename = "id")]
19    pub id: String,
20    /// This is the ISO 8601 date-time string of when the profile was created.
21    #[serde(rename = "createdAt")]
22    pub created_at: String,
23    /// This is the ISO 8601 date-time string of when the profile was last updated.
24    #[serde(rename = "updatedAt")]
25    pub updated_at: String,
26    /// This is the email of the user that is associated with the profile.
27    #[serde(rename = "email")]
28    pub email: String,
29    /// This is the full name of the user that is associated with the profile.
30    #[serde(rename = "fullName", skip_serializing_if = "Option::is_none")]
31    pub full_name: Option<String>,
32}
33
34impl User {
35    pub fn new(id: String, created_at: String, updated_at: String, email: String) -> User {
36        User {
37            id,
38            created_at,
39            updated_at,
40            email,
41            full_name: None,
42        }
43    }
44}