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};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UserSessionsListItem {
    /// Distinguishes the session object.
    pub object: String,
    /// The unique ID of the session.
    pub id: String,
    /// Information about the impersonator if this session was created via impersonation.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub impersonator: Option<UserSessionsImpersonator>,
    /// The IP address from which the session was created.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub ip_address: Option<String>,
    /// The ID of the organization this session is associated with.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub organization_id: Option<String>,
    /// The user agent string from the device that created the session.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub user_agent: Option<String>,
    /// The ID of the user this session belongs to.
    pub user_id: String,
    /// The authentication method used to create this session.
    pub auth_method: UserSessionsAuthMethod,
    /// The current status of the session.
    pub status: UserSessionsStatus,
    /// The timestamp when the session expires.
    pub expires_at: String,
    /// The timestamp when the session ended.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub ended_at: Option<String>,
    /// An ISO 8601 timestamp.
    pub created_at: String,
    /// An ISO 8601 timestamp.
    pub updated_at: String,
}