vapi_client/models/
schedule_plan.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 SchedulePlan {
16    /// This is the ISO 8601 date-time string of the earliest time the call can be scheduled.
17    #[serde(rename = "earliestAt")]
18    pub earliest_at: String,
19    /// This is the ISO 8601 date-time string of the latest time the call can be scheduled.
20    #[serde(rename = "latestAt", skip_serializing_if = "Option::is_none")]
21    pub latest_at: Option<String>,
22}
23
24impl SchedulePlan {
25    pub fn new(earliest_at: String) -> SchedulePlan {
26        SchedulePlan {
27            earliest_at,
28            latest_at: None,
29        }
30    }
31}