vapi_client/models/
oauth2_authentication_session.rs1use serde::{Deserialize, Serialize};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct Oauth2AuthenticationSession {
19 #[serde(rename = "accessToken", skip_serializing_if = "Option::is_none")]
21 pub access_token: Option<String>,
22 #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
24 pub expires_at: Option<String>,
25}
26
27impl Oauth2AuthenticationSession {
28 pub fn new() -> Oauth2AuthenticationSession {
29 Oauth2AuthenticationSession {
30 access_token: None,
31 expires_at: None,
32 }
33 }
34}