Skip to main content

authentik_client/models/
property_mapping_test_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.6
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PropertyMappingTestRequest : Test property mapping execution for a user/group with context
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PropertyMappingTestRequest {
17    #[serde(
18        rename = "user",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub user: Option<Option<i32>>,
24    #[serde(rename = "context", skip_serializing_if = "Option::is_none")]
25    pub context: Option<std::collections::HashMap<String, serde_json::Value>>,
26    #[serde(
27        rename = "group",
28        default,
29        with = "::serde_with::rust::double_option",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub group: Option<Option<uuid::Uuid>>,
33}
34
35impl PropertyMappingTestRequest {
36    /// Test property mapping execution for a user/group with context
37    pub fn new() -> PropertyMappingTestRequest {
38        PropertyMappingTestRequest {
39            user: None,
40            context: None,
41            group: None,
42        }
43    }
44}