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;

/// GetOobConfirmationCodeResponse : Response of getting a code for user confirmation (reset password, change email etc.).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetOobConfirmationCodeResponse {
    /// The email address that the email is sent to.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The fixed string \"identitytoolkit#GetOobConfirmationCodeResponse\".
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// The code to be send to the user.
    #[serde(rename = "oobCode", skip_serializing_if = "Option::is_none")]
    pub oob_code: Option<String>,
}

impl GetOobConfirmationCodeResponse {
    /// Response of getting a code for user confirmation (reset password, change email etc.).
    pub fn new() -> GetOobConfirmationCodeResponse {
        GetOobConfirmationCodeResponse {
            email: None,
            kind: None,
            oob_code: None,
        }
    }
}
