authentik_client/models/saml_source_property_mapping_request.rs
1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.12.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SamlSourcePropertyMappingRequest : SAMLSourcePropertyMapping Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SamlSourcePropertyMappingRequest {
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")]
26 pub name: String,
27 #[serde(rename = "expression")]
28 pub expression: String,
29}
30
31impl SamlSourcePropertyMappingRequest {
32 /// SAMLSourcePropertyMapping Serializer
33 pub fn new(name: String, expression: String) -> SamlSourcePropertyMappingRequest {
34 SamlSourcePropertyMappingRequest {
35 managed: None,
36 name,
37 expression,
38 }
39 }
40}