vapi_client/models/
user.rs

1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.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 User {
16    /// This is the unique identifier for the profile or user.
17    #[serde(rename = "id")]
18    pub id: String,
19    /// This is the ISO 8601 date-time string of when the profile was created.
20    #[serde(rename = "createdAt")]
21    pub created_at: String,
22    /// This is the ISO 8601 date-time string of when the profile was last updated.
23    #[serde(rename = "updatedAt")]
24    pub updated_at: String,
25    /// This is the email of the user that is associated with the profile.
26    #[serde(rename = "email")]
27    pub email: String,
28    /// This is the full name of the user that is associated with the profile.
29    #[serde(rename = "fullName", skip_serializing_if = "Option::is_none")]
30    pub full_name: Option<String>,
31}
32
33impl User {
34    pub fn new(id: String, created_at: String, updated_at: String, email: String) -> User {
35        User {
36            id,
37            created_at,
38            updated_at,
39            email,
40            full_name: None,
41        }
42    }
43}