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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Generated automatically by schema_generator.rs - DO NOT EDIT.
// Source: ./deriv-api-docs/config/v3/login_history/receive.json
// Use direct crate names for imports within generated files
use serde::{Deserialize, Serialize};
// Import shared types from the *same* crate
use crate::status::Status;
// It's a struct
/// User login history
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct LoginHistoryItem {
/// Type of action.\n
// Correct serde attribute construction - Use helper
pub action: String,
/// Browser used\n
// Correct serde attribute construction - Use helper
pub browser: String,
/// Country the login originated (IP Based))\n
// Correct serde attribute construction - Use helper
pub country: String,
/// ISO6801 timestame of the activity\n
// Correct serde attribute construction - Use helper
pub datetime: String,
/// Client device\n
// Correct serde attribute construction - Use helper
pub device: String,
/// Provides details about browser, device used during login or logout\n
// Correct serde attribute construction - Use helper
pub environment: String,
/// IP Address the login was from\n
// Correct serde attribute construction - Use helper
pub ip: String,
/// Browser language\n
// Correct serde attribute construction - Use helper
pub language: String,
/// Operating system\n
// Correct serde attribute construction - Use helper
pub os: String,
/// Status of activity: 1 - success, 0 - failure\n
// Correct serde attribute construction - Use helper
pub status: Status,
/// Epoch time of the activity\n
// Correct serde attribute construction - Use helper
pub time: i64,
/// Version of the browser\n
// Correct serde attribute construction - Use helper
pub version: String,
}