authentik_rust/models/
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/// BlueprintInstanceRequest : Info about a single blueprint instance file
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BlueprintInstanceRequest {
16    #[serde(rename = "name")]
17    pub name: 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 BlueprintInstanceRequest {
29    /// Info about a single blueprint instance file
30    pub fn new(name: String) -> BlueprintInstanceRequest {
31        BlueprintInstanceRequest {
32            name,
33            path: None,
34            context: None,
35            enabled: None,
36            content: None,
37        }
38    }
39}
40