fusionauth_rust_client/models/
jwt_refresh_event.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.57.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// JwtRefreshEvent : Models the JWT Refresh Event. This event will be fired when a JWT is \"refreshed\" (generated) using a Refresh Token.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JwtRefreshEvent {
17    #[serde(rename = "applicationId", skip_serializing_if = "Option::is_none")]
18    pub application_id: Option<uuid::Uuid>,
19    #[serde(rename = "original", skip_serializing_if = "Option::is_none")]
20    pub original: Option<String>,
21    #[serde(rename = "refreshToken", skip_serializing_if = "Option::is_none")]
22    pub refresh_token: Option<String>,
23    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
24    pub token: Option<String>,
25    #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
26    pub user_id: Option<uuid::Uuid>,
27    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
28    #[serde(rename = "createInstant", skip_serializing_if = "Option::is_none")]
29    pub create_instant: Option<i64>,
30    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
31    pub id: Option<uuid::Uuid>,
32    #[serde(rename = "info", skip_serializing_if = "Option::is_none")]
33    pub info: Option<Box<models::EventInfo>>,
34    #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")]
35    pub tenant_id: Option<uuid::Uuid>,
36    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
37    pub r#type: Option<models::EventType>,
38}
39
40impl JwtRefreshEvent {
41    /// Models the JWT Refresh Event. This event will be fired when a JWT is \"refreshed\" (generated) using a Refresh Token.
42    pub fn new() -> JwtRefreshEvent {
43        JwtRefreshEvent {
44            application_id: None,
45            original: None,
46            refresh_token: None,
47            token: None,
48            user_id: None,
49            create_instant: None,
50            id: None,
51            info: None,
52            tenant_id: None,
53            r#type: None,
54        }
55    }
56}
57