Skip to main content

fusionauth_rust_client/models/
trust.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/// Trust : Represents the inbound lambda parameter 'mfaTrust' inside the 'context' parameter for MFA Required lambdas.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Trust {
17    #[serde(rename = "applicationId", skip_serializing_if = "Option::is_none")]
18    pub application_id: Option<uuid::Uuid>,
19    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
20    pub attributes: Option<std::collections::HashMap<String, String>>,
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 = "expirationInstant", skip_serializing_if = "Option::is_none")]
23    pub expiration_instant: Option<i64>,
24    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25    pub id: Option<String>,
26    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
27    #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
28    pub insert_instant: Option<i64>,
29    #[serde(rename = "startInstants", skip_serializing_if = "Option::is_none")]
30    pub start_instants: Option<Box<models::StartInstant>>,
31    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
32    pub state: Option<std::collections::HashMap<String, serde_json::Value>>,
33    #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")]
34    pub tenant_id: Option<uuid::Uuid>,
35    #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
36    pub user_id: Option<uuid::Uuid>,
37}
38
39impl Trust {
40    /// Represents the inbound lambda parameter 'mfaTrust' inside the 'context' parameter for MFA Required lambdas.
41    pub fn new() -> Trust {
42        Trust {
43            application_id: None,
44            attributes: None,
45            expiration_instant: None,
46            id: None,
47            insert_instant: None,
48            start_instants: None,
49            state: None,
50            tenant_id: None,
51            user_id: None,
52        }
53    }
54}
55