authentik_rust/models/user_self_groups.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct UserSelfGroups {
15 #[serde(rename = "name")]
16 pub name: String,
17 #[serde(rename = "pk")]
18 pub pk: String,
19}
20
21impl UserSelfGroups {
22 pub fn new(name: String, pk: String) -> UserSelfGroups {
23 UserSelfGroups {
24 name,
25 pk,
26 }
27 }
28}
29