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 event payload.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DsyncUserUpdatedData {
    /// Distinguishes the Directory User object.
    pub object: String,
    /// Unique identifier for the Directory User.
    pub id: String,
    /// The identifier of the Directory the Directory User belongs to.
    pub directory_id: String,
    /// The identifier for the Organization in which the Directory resides.
    pub organization_id: String,
    /// Unique identifier for the user, assigned by the Directory Provider. Different Directory Providers use different ID formats.
    pub idp_id: String,
    /// The email address of the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub email: Option<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>,
    /// The full name of the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub name: Option<String>,
    /// A list of email addresses for the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    #[deprecated]
    pub emails: Option<Vec<DsyncUserUpdatedDataEmail>>,
    /// The job title of the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    #[deprecated]
    pub job_title: Option<String>,
    /// The username of the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    #[deprecated]
    pub username: Option<String>,
    /// The state of the user.
    pub state: DsyncUserUpdatedDataState,
    /// The raw attributes received from the directory provider.
    #[deprecated]
    pub raw_attributes: std::collections::HashMap<String, serde_json::Value>,
    /// An object containing the custom attribute mapping for the Directory Provider.
    pub custom_attributes: std::collections::HashMap<String, serde_json::Value>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub role: Option<SlimRole>,
    /// All roles assigned to the user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub roles: Option<Vec<SlimRole>>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub previous_attributes: Option<std::collections::HashMap<String, serde_json::Value>>,
}