deriv_api_schema/account_list_item.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/authorize/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize};
7
8
9use chrono::{DateTime, Utc};
10
11// Import shared types from the *same* crate
12use crate::linked_to_item::LinkedToItem;
13use crate::account_category::AccountCategory;
14
15// It's a struct
16#[derive(Debug, Clone, Serialize, Deserialize)]
17#[serde(rename_all = "snake_case")]
18pub struct AccountListItem {
19 /// Account category.\n
20 // Correct serde attribute construction - Use helper
21 #[serde(skip_serializing_if = "Option::is_none")]
22 pub account_category: Option<AccountCategory>,
23 /// Account type.\n
24 // Correct serde attribute construction - Use helper
25 #[serde(skip_serializing_if = "Option::is_none")]
26 pub account_type: Option<String>,
27 /// 2 letter broker code.\n
28 // Correct serde attribute construction - Use helper
29 #[serde(skip_serializing_if = "Option::is_none")]
30 pub broker: Option<String>,
31 /// Creation time of the account as epoch.\n
32 // Correct serde attribute construction - Use helper
33 #[serde(skip_serializing_if = "Option::is_none")]
34 pub created_at: Option<DateTime<Utc>>,
35 /// Currency of specified account.\n
36 // Correct serde attribute construction - Use helper
37 #[serde(skip_serializing_if = "Option::is_none")]
38 pub currency: Option<String>,
39 /// Currency type for the corresponding currency.\n
40 // Correct serde attribute construction - Use helper
41 #[serde(skip_serializing_if = "Option::is_none")]
42 pub currency_type: Option<String>,
43 /// Epoch of date till client has excluded him/herself from the website, only present if client is self excluded.\n
44 // Correct serde attribute construction - Use helper
45 #[serde(skip_serializing_if = "Option::is_none")]
46 pub excluded_until: Option<i64>,
47 /// Boolean value: 1 or 0, indicating whether the account is marked as disabled or not.\n
48 // Correct serde attribute construction - Use helper
49 #[serde(skip_serializing_if = "Option::is_none")]
50 pub is_disabled: Option<String>,
51 /// Boolean value: 1 or 0, indicating whether the account is a virtual-money account.\n
52 // Correct serde attribute construction - Use helper
53 #[serde(skip_serializing_if = "Option::is_none")]
54 pub is_virtual: Option<String>,
55 /// Landing company shortcode the account belongs to.\n
56 // Correct serde attribute construction - Use helper
57 #[serde(skip_serializing_if = "Option::is_none")]
58 pub landing_company_name: Option<String>,
59 /// Details of the list of Trading accounts linked to the Wallet account.\n
60 // Correct serde attribute construction - Use helper
61 #[serde(skip_serializing_if = "Option::is_none")]
62 pub linked_to: Option<Vec<LinkedToItem>>,
63 /// The account ID of specified account.\n
64 // Correct serde attribute construction - Use helper
65 #[serde(skip_serializing_if = "Option::is_none")]
66 pub loginid: Option<String>,
67}
68