use serde::{Deserialize, Serialize}; /*
                                      * Google Identity Toolkit API
                                      *
                                      * Help the third party sites to implement federated login.
                                      *
                                      * The version of the OpenAPI document: v3
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::identitytoolkit_v3::models;

/// IdentitytoolkitRelyingpartyResetPasswordRequest : Request to reset the password.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IdentitytoolkitRelyingpartyResetPasswordRequest {
    /// The email address of the user.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The new password inputted by the user.
    #[serde(rename = "newPassword", skip_serializing_if = "Option::is_none")]
    pub new_password: Option<String>,
    /// The old password inputted by the user.
    #[serde(rename = "oldPassword", skip_serializing_if = "Option::is_none")]
    pub old_password: Option<String>,
    /// The confirmation code.
    #[serde(rename = "oobCode", skip_serializing_if = "Option::is_none")]
    pub oob_code: Option<String>,
}

impl IdentitytoolkitRelyingpartyResetPasswordRequest {
    /// Request to reset the password.
    pub fn new() -> IdentitytoolkitRelyingpartyResetPasswordRequest {
        IdentitytoolkitRelyingpartyResetPasswordRequest {
            email: None,
            new_password: None,
            old_password: None,
            oob_code: None,
        }
    }
}
