Skip to main content

fusionauth_rust_client/models/
login_prevented_response.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.62.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// LoginPreventedResponse : The summary of the action that is preventing login to be returned on the login response.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LoginPreventedResponse {
17    #[serde(rename = "actionId", skip_serializing_if = "Option::is_none")]
18    pub action_id: Option<uuid::Uuid>,
19    #[serde(rename = "actionerUserId", skip_serializing_if = "Option::is_none")]
20    pub actioner_user_id: Option<uuid::Uuid>,
21    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
22    #[serde(rename = "expiry", skip_serializing_if = "Option::is_none")]
23    pub expiry: Option<i64>,
24    #[serde(rename = "localizedName", skip_serializing_if = "Option::is_none")]
25    pub localized_name: Option<String>,
26    #[serde(rename = "localizedOption", skip_serializing_if = "Option::is_none")]
27    pub localized_option: Option<String>,
28    #[serde(rename = "localizedReason", skip_serializing_if = "Option::is_none")]
29    pub localized_reason: Option<String>,
30    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
31    pub name: Option<String>,
32    #[serde(rename = "option", skip_serializing_if = "Option::is_none")]
33    pub option: Option<String>,
34    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
35    pub reason: Option<String>,
36    #[serde(rename = "reasonCode", skip_serializing_if = "Option::is_none")]
37    pub reason_code: Option<String>,
38}
39
40impl LoginPreventedResponse {
41    /// The summary of the action that is preventing login to be returned on the login response.
42    pub fn new() -> LoginPreventedResponse {
43        LoginPreventedResponse {
44            action_id: None,
45            actioner_user_id: None,
46            expiry: None,
47            localized_name: None,
48            localized_option: None,
49            localized_reason: None,
50            name: None,
51            option: None,
52            reason: None,
53            reason_code: None,
54        }
55    }
56}
57