Skip to main content

authentik_client/models/
review_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/// ReviewRequest : 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 ReviewRequest {
17    #[serde(rename = "iteration")]
18    pub iteration: uuid::Uuid,
19    #[serde(
20        rename = "note",
21        default,
22        with = "::serde_with::rust::double_option",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub note: Option<Option<String>>,
26}
27
28impl ReviewRequest {
29    /// Mixin to validate that a valid enterprise license exists before allowing to save the object
30    pub fn new(iteration: uuid::Uuid) -> ReviewRequest {
31        ReviewRequest { iteration, note: None }
32    }
33}