Skip to main content

authentik_client/models/
user_password_set_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.0
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UserPasswordSetRequest : Payload to set a users' password directly
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UserPasswordSetRequest {
17    #[serde(rename = "password")]
18    pub password: String,
19}
20
21impl UserPasswordSetRequest {
22    /// Payload to set a users' password directly
23    pub fn new(password: String) -> UserPasswordSetRequest {
24        UserPasswordSetRequest { password }
25    }
26}