1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// 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,
}