authentik_rust/models/
patched_scope_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/// PatchedScopeMappingRequest : ScopeMapping Serializer
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedScopeMappingRequest {
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    /// Scope name requested by the client
24    #[serde(rename = "scope_name", skip_serializing_if = "Option::is_none")]
25    pub scope_name: Option<String>,
26    /// Description shown to the user when consenting. If left empty, the user won't be informed.
27    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
28    pub description: Option<String>,
29}
30
31impl PatchedScopeMappingRequest {
32    /// ScopeMapping Serializer
33    pub fn new() -> PatchedScopeMappingRequest {
34        PatchedScopeMappingRequest {
35            managed: None,
36            name: None,
37            expression: None,
38            scope_name: None,
39            description: None,
40        }
41    }
42}
43