authentik_rust/models/scim_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/// ScimMappingRequest : SCIMMapping Serializer
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ScimMappingRequest {
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")]
20 pub name: String,
21 #[serde(rename = "expression")]
22 pub expression: String,
23}
24
25impl ScimMappingRequest {
26 /// SCIMMapping Serializer
27 pub fn new(name: String, expression: String) -> ScimMappingRequest {
28 ScimMappingRequest {
29 managed: None,
30 name,
31 expression,
32 }
33 }
34}
35