vapi_client/models/
call_log_privileged.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 CallLogPrivileged {
16    /// This is the unique identifier for the call.
17    #[serde(rename = "callId")]
18    pub call_id: String,
19    /// This is the unique identifier for the org that this call log belongs to.
20    #[serde(rename = "orgId")]
21    pub org_id: String,
22    /// This is the log message associated with the call.
23    #[serde(rename = "log")]
24    pub log: String,
25    /// This is the level of the log message.
26    #[serde(rename = "level")]
27    pub level: LevelTrue,
28    /// This is the ISO 8601 date-time string of when the log was created.
29    #[serde(rename = "time")]
30    pub time: String,
31}
32
33impl CallLogPrivileged {
34    pub fn new(
35        call_id: String,
36        org_id: String,
37        log: String,
38        level: LevelTrue,
39        time: String,
40    ) -> CallLogPrivileged {
41        CallLogPrivileged {
42            call_id,
43            org_id,
44            log,
45            level,
46            time,
47        }
48    }
49}
50/// This is the level of the log message.
51#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
52pub enum LevelTrue {
53    #[serde(rename = "INFO")]
54    Info,
55    #[serde(rename = "LOG")]
56    Log,
57    #[serde(rename = "WARN")]
58    Warn,
59    #[serde(rename = "ERROR")]
60    Error,
61    #[serde(rename = "CHECKPOINT")]
62    Checkpoint,
63}
64
65impl Default for LevelTrue {
66    fn default() -> LevelTrue {
67        Self::Info
68    }
69}