Skip to main content

authentik_client/models/
device_access_group.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DeviceAccessGroup {
16    #[serde(rename = "pbm_uuid")]
17    pub pbm_uuid: uuid::Uuid,
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
21    pub attributes: Option<std::collections::HashMap<String, serde_json::Value>>,
22}
23
24impl DeviceAccessGroup {
25    pub fn new(pbm_uuid: uuid::Uuid, name: String) -> DeviceAccessGroup {
26        DeviceAccessGroup {
27            pbm_uuid,
28            name,
29            attributes: None,
30        }
31    }
32}