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