Skip to main content

akeyless_api/models/
email_pass_access_rules.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct EmailPassAccessRules {
16    #[serde(rename = "alg", skip_serializing_if = "Option::is_none")]
17    pub alg: Option<String>,
18    /// The Email value
19    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
20    pub email: Option<String>,
21    /// EncEmailWithSharedKey is the email of this auth method, encrypted with the shared auth/uam key (for use in uam)
22    #[serde(rename = "enc_email_with_shared_key", skip_serializing_if = "Option::is_none")]
23    pub enc_email_with_shared_key: Option<String>,
24    /// The password value
25    #[serde(rename = "hash_pass", skip_serializing_if = "Option::is_none")]
26    pub hash_pass: Option<String>,
27    /// The last password change date
28    #[serde(rename = "last_reset_password", skip_serializing_if = "Option::is_none")]
29    pub last_reset_password: Option<String>,
30    #[serde(rename = "mfa_type", skip_serializing_if = "Option::is_none")]
31    pub mfa_type: Option<String>,
32}
33
34impl EmailPassAccessRules {
35    pub fn new() -> EmailPassAccessRules {
36        EmailPassAccessRules {
37            alg: None,
38            email: None,
39            enc_email_with_shared_key: None,
40            hash_pass: None,
41            last_reset_password: None,
42            mfa_type: None,
43        }
44    }
45}
46