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};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct User {
19    /// This is the unique identifier for the profile or user.
20    #[serde(rename = "id")]
21    pub id: String,
22    /// This is the ISO 8601 date-time string of when the profile was created.
23    #[serde(rename = "createdAt")]
24    pub created_at: String,
25    /// This is the ISO 8601 date-time string of when the profile was last updated.
26    #[serde(rename = "updatedAt")]
27    pub updated_at: String,
28    /// This is the email of the user that is associated with the profile.
29    #[serde(rename = "email")]
30    pub email: String,
31    /// This is the full name of the user that is associated with the profile.
32    #[serde(rename = "fullName", skip_serializing_if = "Option::is_none")]
33    pub full_name: Option<String>,
34}
35
36impl User {
37    pub fn new(id: String, created_at: String, updated_at: String, email: String) -> User {
38        User {
39            id,
40            created_at,
41            updated_at,
42            email,
43            full_name: None,
44        }
45    }
46}