deriv_api_schema/login_history_item.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/login_history/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize};
7
8
9
10
11// Import shared types from the *same* crate
12use crate::status::Status;
13
14// It's a struct
15/// User login history
16#[derive(Debug, Clone, Serialize, Deserialize)]
17#[serde(rename_all = "snake_case")]
18pub struct LoginHistoryItem {
19 /// Type of action.\n
20 // Correct serde attribute construction - Use helper
21
22 pub action: String,
23 /// Browser used\n
24 // Correct serde attribute construction - Use helper
25
26 pub browser: String,
27 /// Country the login originated (IP Based))\n
28 // Correct serde attribute construction - Use helper
29
30 pub country: String,
31 /// ISO6801 timestame of the activity\n
32 // Correct serde attribute construction - Use helper
33
34 pub datetime: String,
35 /// Client device\n
36 // Correct serde attribute construction - Use helper
37
38 pub device: String,
39 /// Provides details about browser, device used during login or logout\n
40 // Correct serde attribute construction - Use helper
41
42 pub environment: String,
43 /// IP Address the login was from\n
44 // Correct serde attribute construction - Use helper
45
46 pub ip: String,
47 /// Browser language\n
48 // Correct serde attribute construction - Use helper
49
50 pub language: String,
51 /// Operating system\n
52 // Correct serde attribute construction - Use helper
53
54 pub os: String,
55 /// Status of activity: 1 - success, 0 - failure\n
56 // Correct serde attribute construction - Use helper
57
58 pub status: Status,
59 /// Epoch time of the activity\n
60 // Correct serde attribute construction - Use helper
61
62 pub time: i64,
63 /// Version of the browser\n
64 // Correct serde attribute construction - Use helper
65
66 pub version: String,
67}
68