authentik_rust/models/
patched_blueprint_instance_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/// PatchedBlueprintInstanceRequest : Info about a single blueprint instance file
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedBlueprintInstanceRequest {
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
19    pub path: Option<String>,
20    #[serde(rename = "context", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub context: Option<Option<serde_json::Value>>,
22    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
23    pub enabled: Option<bool>,
24    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
25    pub content: Option<String>,
26}
27
28impl PatchedBlueprintInstanceRequest {
29    /// Info about a single blueprint instance file
30    pub fn new() -> PatchedBlueprintInstanceRequest {
31        PatchedBlueprintInstanceRequest {
32            name: None,
33            path: None,
34            context: None,
35            enabled: None,
36            content: None,
37        }
38    }
39}
40