deriv_api_schema/app_list_item.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/app_list/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import shared types from the *same* crate
12
13// It's a struct
14#[derive(Debug, Clone, Serialize, Deserialize)]
15#[serde(rename_all = "snake_case")]
16pub struct AppListItem {
17 /// Active.\n
18 // Correct serde attribute construction - Use helper
19 #[serde(skip_serializing_if = "Option::is_none")]
20 pub active: Option<i64>,
21 /// Application ID.\n
22 // Correct serde attribute construction - Use helper
23
24 pub app_id: i64,
25 /// Markup added to contract prices (as a percentage of contract payout).\n
26 // Correct serde attribute construction - Use helper
27
28 pub app_markup_percentage: String,
29 /// Application's App Store URL.\n
30 // Correct serde attribute construction - Use helper
31 #[serde(skip_serializing_if = "Option::is_none")]
32 pub appstore: Option<Value>,
33 /// Application's GitHub page. (for open-source projects)\n
34 // Correct serde attribute construction - Use helper
35 #[serde(skip_serializing_if = "Option::is_none")]
36 pub github: Option<Value>,
37 /// Application's Google Play URL.\n
38 // Correct serde attribute construction - Use helper
39 #[serde(skip_serializing_if = "Option::is_none")]
40 pub googleplay: Option<Value>,
41 /// Application's homepage URL.\n
42 // Correct serde attribute construction - Use helper
43 #[serde(skip_serializing_if = "Option::is_none")]
44 pub homepage: Option<Value>,
45 /// Application name.\n
46 // Correct serde attribute construction - Use helper
47
48 pub name: String,
49 /// The URL to redirect to after a successful login.\n
50 // Correct serde attribute construction - Use helper
51
52 pub redirect_uri: String,
53 /// Scope Details.\n
54 // Correct serde attribute construction - Use helper
55 #[serde(skip_serializing_if = "Option::is_none")]
56 pub scopes: Option<Vec<String>>,
57 /// Used when `verify_email` called. If available, a URL containing the verification token will send to the client's email, otherwise only the token will be sent.\n
58 // Correct serde attribute construction - Use helper
59 #[serde(skip_serializing_if = "Option::is_none")]
60 pub verification_uri: Option<Value>,
61}
62