Skip to main content

authentik_client/models/
review.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Review : Mixin to validate that a valid enterprise license exists before allowing to save the object
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Review {
17    #[serde(rename = "id")]
18    pub id: uuid::Uuid,
19    #[serde(rename = "iteration")]
20    pub iteration: uuid::Uuid,
21    #[serde(rename = "reviewer")]
22    pub reviewer: models::ReviewerUser,
23    #[serde(rename = "timestamp")]
24    pub timestamp: String,
25    #[serde(
26        rename = "note",
27        default,
28        with = "::serde_with::rust::double_option",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub note: Option<Option<String>>,
32}
33
34impl Review {
35    /// Mixin to validate that a valid enterprise license exists before allowing to save the object
36    pub fn new(id: uuid::Uuid, iteration: uuid::Uuid, reviewer: models::ReviewerUser, timestamp: String) -> Review {
37        Review {
38            id,
39            iteration,
40            reviewer,
41            timestamp,
42            note: None,
43        }
44    }
45}