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};
/// An event emitted by WorkOS.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EventSchema {
    /// Distinguishes the Event object.
    pub object: String,
    /// Unique identifier for the Event.
    pub id: String,
    /// The type of event that occurred.
    pub event: String,
    /// The event payload.
    pub data: std::collections::HashMap<String, serde_json::Value>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// Additional context about the event.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub context: Option<std::collections::HashMap<String, serde_json::Value>>,
}