vapi_client/models/
oauth2_authentication_session.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 Oauth2AuthenticationSession {
16    /// This is the OAuth2 access token.
17    #[serde(rename = "accessToken", skip_serializing_if = "Option::is_none")]
18    pub access_token: Option<String>,
19    /// This is the OAuth2 access token expiration.
20    #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
21    pub expires_at: Option<String>,
22    /// This is the OAuth2 refresh token.
23    #[serde(rename = "refreshToken", skip_serializing_if = "Option::is_none")]
24    pub refresh_token: Option<String>,
25}
26
27impl Oauth2AuthenticationSession {
28    pub fn new() -> Oauth2AuthenticationSession {
29        Oauth2AuthenticationSession {
30            access_token: None,
31            expires_at: None,
32            refresh_token: None,
33        }
34    }
35}