authentik-client 2026.2.3

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.3
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// UserRecoveryEmailRequest : Payload to create and email a recovery link
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserRecoveryEmailRequest {
    #[serde(rename = "token_duration", skip_serializing_if = "Option::is_none")]
    pub token_duration: Option<String>,
    #[serde(rename = "email_stage")]
    pub email_stage: uuid::Uuid,
}

impl UserRecoveryEmailRequest {
    /// Payload to create and email a recovery link
    pub fn new(email_stage: uuid::Uuid) -> UserRecoveryEmailRequest {
        UserRecoveryEmailRequest {
            token_duration: None,
            email_stage,
        }
    }
}