authentik-client 2026.2.2-rc1

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

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

/// Review : Mixin to validate that a valid enterprise license exists before allowing to save the object
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Review {
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "iteration")]
    pub iteration: uuid::Uuid,
    #[serde(rename = "reviewer")]
    pub reviewer: models::ReviewerUser,
    #[serde(rename = "timestamp")]
    pub timestamp: String,
    #[serde(
        rename = "note",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub note: Option<Option<String>>,
}

impl Review {
    /// Mixin to validate that a valid enterprise license exists before allowing to save the object
    pub fn new(id: uuid::Uuid, iteration: uuid::Uuid, reviewer: models::ReviewerUser, timestamp: String) -> Review {
        Review {
            id,
            iteration,
            reviewer,
            timestamp,
            note: None,
        }
    }
}