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