authentik_client/models/impersonation_request.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 ImpersonationRequest {
16 #[serde(rename = "reason")]
17 pub reason: String,
18}
19
20impl ImpersonationRequest {
21 pub fn new(reason: String) -> ImpersonationRequest {
22 ImpersonationRequest { reason }
23 }
24}