workos 1.0.0

Official Rust SDK for the WorkOS API
Documentation
// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// The user object.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EmailChangeConfirmationUser {
    /// Distinguishes the user object.
    pub object: String,
    /// The unique ID of the user.
    pub id: String,
    /// The first name of the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub first_name: Option<String>,
    /// The last name of the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub last_name: Option<String>,
    /// A URL reference to an image representing the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub profile_picture_url: Option<String>,
    /// The email address of the user.
    pub email: String,
    /// Whether the user's email has been verified.
    pub email_verified: bool,
    /// The external ID of the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub external_id: Option<String>,
    /// Object containing metadata key/value pairs associated with the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub metadata: Option<std::collections::HashMap<String, String>>,
    /// The timestamp when the user last signed in.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub last_sign_in_at: Option<String>,
    /// The user's preferred locale.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub locale: Option<String>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
}