authentik_rust/models/metadata.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/// Metadata : Serializer for blueprint metadata
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Metadata {
16 #[serde(rename = "name")]
17 pub name: String,
18 #[serde(rename = "labels")]
19 pub labels: std::collections::HashMap<String, serde_json::Value>,
20}
21
22impl Metadata {
23 /// Serializer for blueprint metadata
24 pub fn new(name: String, labels: std::collections::HashMap<String, serde_json::Value>) -> Metadata {
25 Metadata {
26 name,
27 labels,
28 }
29 }
30}
31