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