vapi_client/models/
server.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 Server {
16    /// This is the timeout in seconds for the request. Defaults to 20 seconds.  @default 20
17    #[serde(rename = "timeoutSeconds", skip_serializing_if = "Option::is_none")]
18    pub timeout_seconds: Option<f64>,
19    /// This is where the request will be sent.
20    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
21    pub url: Option<String>,
22    /// These are the headers to include in the request.  Each key-value pair represents a header name and its value.
23    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
24    pub headers: Option<serde_json::Value>,
25    /// This is the backoff plan if the request fails. Defaults to undefined (the request will not be retried).  @default undefined (the request will not be retried)
26    #[serde(rename = "backoffPlan", skip_serializing_if = "Option::is_none")]
27    pub backoff_plan: Option<models::BackoffPlan>,
28}
29
30impl Server {
31    pub fn new() -> Server {
32        Server {
33            timeout_seconds: None,
34            url: None,
35            headers: None,
36            backoff_plan: None,
37        }
38    }
39}