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