Skip to main content

dtz_identity/models/
change_authentication_request.rs

1/*
2 * DTZ Identity
3 *
4 * a generated client for the DTZ Identity API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChangeAuthenticationRequest {
17    #[serde(rename = "email")]
18    pub email: String,
19    #[serde(rename = "oldPassword", skip_serializing_if = "Option::is_none")]
20    pub old_password: Option<String>,
21    #[serde(rename = "newPassword", skip_serializing_if = "Option::is_none")]
22    pub new_password: Option<String>,
23    #[serde(rename = "defaultContextId", skip_serializing_if = "Option::is_none")]
24    pub default_context_id: Option<dtz_identifier::ContextId>,
25}
26
27impl ChangeAuthenticationRequest {
28    pub fn new(email: String) -> ChangeAuthenticationRequest {
29        ChangeAuthenticationRequest {
30            email,
31            old_password: None,
32            new_password: None,
33            default_context_id: None,
34        }
35    }
36}
37