Skip to main content

authentik_client/models/
user_recovery_email_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.0
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UserRecoveryEmailRequest : Payload to create and email a recovery link
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserRecoveryEmailRequest {
17    #[serde(rename = "token_duration", skip_serializing_if = "Option::is_none")]
18    pub token_duration: Option<String>,
19    #[serde(rename = "email_stage")]
20    pub email_stage: uuid::Uuid,
21}
22
23impl UserRecoveryEmailRequest {
24    /// Payload to create and email a recovery link
25    pub fn new(email_stage: uuid::Uuid) -> UserRecoveryEmailRequest {
26        UserRecoveryEmailRequest {
27            token_duration: None,
28            email_stage,
29        }
30    }
31}