1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Ory Hydra API
 *
 * Documentation for all of Ory Hydra's APIs. 
 *
 * The version of the OpenAPI document: v2.2.0
 * Contact: hi@ory.sh
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct OAuth2ConsentSessionExpiresAt {
    #[serde(rename = "access_token", skip_serializing_if = "Option::is_none")]
    pub access_token: Option<String>,
    #[serde(rename = "authorize_code", skip_serializing_if = "Option::is_none")]
    pub authorize_code: Option<String>,
    #[serde(rename = "id_token", skip_serializing_if = "Option::is_none")]
    pub id_token: Option<String>,
    #[serde(rename = "par_context", skip_serializing_if = "Option::is_none")]
    pub par_context: Option<String>,
    #[serde(rename = "refresh_token", skip_serializing_if = "Option::is_none")]
    pub refresh_token: Option<String>,
}

impl Default for OAuth2ConsentSessionExpiresAt {
    fn default() -> Self {
        Self::new()
    }
}

impl OAuth2ConsentSessionExpiresAt {
    pub fn new() -> OAuth2ConsentSessionExpiresAt {
        OAuth2ConsentSessionExpiresAt {
                access_token: None,
                authorize_code: None,
                id_token: None,
                par_context: None,
                refresh_token: None,
        }
    }
}