Skip to main content

authentik_client/models/
patched_saml_source_property_mapping_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/// PatchedSamlSourcePropertyMappingRequest : SAMLSourcePropertyMapping Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedSamlSourcePropertyMappingRequest {
17    /// 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.
18    #[serde(
19        rename = "managed",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub managed: Option<Option<String>>,
25    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
26    pub name: Option<String>,
27    #[serde(rename = "expression", skip_serializing_if = "Option::is_none")]
28    pub expression: Option<String>,
29}
30
31impl PatchedSamlSourcePropertyMappingRequest {
32    /// SAMLSourcePropertyMapping Serializer
33    pub fn new() -> PatchedSamlSourcePropertyMappingRequest {
34        PatchedSamlSourcePropertyMappingRequest {
35            managed: None,
36            name: None,
37            expression: None,
38        }
39    }
40}