vapi_client/models/
auto_reload_plan.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};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AutoReloadPlan {
17    /// This the amount of credits to reload.
18    #[serde(rename = "credits")]
19    pub credits: f64,
20    /// This is the limit at which the reload is triggered.
21    #[serde(rename = "threshold")]
22    pub threshold: f64,
23}
24
25impl AutoReloadPlan {
26    pub fn new(credits: f64, threshold: f64) -> AutoReloadPlan {
27        AutoReloadPlan { credits, threshold }
28    }
29}