vapi_client/models/auto_reload_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 AutoReloadPlan {
16 /// This the amount of credits to reload.
17 #[serde(rename = "credits")]
18 pub credits: f64,
19 /// This is the limit at which the reload is triggered.
20 #[serde(rename = "threshold")]
21 pub threshold: f64,
22}
23
24impl AutoReloadPlan {
25 pub fn new(credits: f64, threshold: f64) -> AutoReloadPlan {
26 AutoReloadPlan { credits, threshold }
27 }
28}