vapi_client/models/
recording.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 Recording {
16    /// This is the stereo recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`.
17    #[serde(rename = "stereoUrl", skip_serializing_if = "Option::is_none")]
18    pub stereo_url: Option<String>,
19    /// This is the video recording url for the call. To enable, set `assistant.artifactPlan.videoRecordingEnabled`.
20    #[serde(rename = "videoUrl", skip_serializing_if = "Option::is_none")]
21    pub video_url: Option<String>,
22    /// This is video recording start delay in ms. To enable, set `assistant.artifactPlan.videoRecordingEnabled`. This can be used to align the playback of the recording with artifact.messages timestamps.
23    #[serde(
24        rename = "videoRecordingStartDelaySeconds",
25        skip_serializing_if = "Option::is_none"
26    )]
27    pub video_recording_start_delay_seconds: Option<f64>,
28    /// This is the mono recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`.
29    #[serde(rename = "mono", skip_serializing_if = "Option::is_none")]
30    pub mono: Option<models::Mono>,
31}
32
33impl Recording {
34    pub fn new() -> Recording {
35        Recording {
36            stereo_url: None,
37            video_url: None,
38            video_recording_start_delay_seconds: None,
39            mono: None,
40        }
41    }
42}