authentik_rust/models/
patched_rac_property_mapping_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// PatchedRacPropertyMappingRequest : RACPropertyMapping Serializer
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedRacPropertyMappingRequest {
16    /// Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
17    #[serde(rename = "managed", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub managed: Option<Option<String>>,
19    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21    #[serde(rename = "expression", skip_serializing_if = "Option::is_none")]
22    pub expression: Option<String>,
23    #[serde(rename = "static_settings", skip_serializing_if = "Option::is_none")]
24    pub static_settings: Option<std::collections::HashMap<String, serde_json::Value>>,
25}
26
27impl PatchedRacPropertyMappingRequest {
28    /// RACPropertyMapping Serializer
29    pub fn new() -> PatchedRacPropertyMappingRequest {
30        PatchedRacPropertyMappingRequest {
31            managed: None,
32            name: None,
33            expression: None,
34            static_settings: None,
35        }
36    }
37}
38