deriv_api_schema/app_get.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/app_get/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
12
13// It's a struct
14/// The information of the requested application.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct AppGet {
18 /// Active.\n
19 // Correct serde attribute construction - Use helper
20 #[serde(skip_serializing_if = "Option::is_none")]
21 pub active: Option<i64>,
22 /// Application ID.\n
23 // Correct serde attribute construction - Use helper
24
25 pub app_id: i64,
26 /// Markup added to contract prices (as a percentage of contract payout).\n
27 // Correct serde attribute construction - Use helper
28
29 pub app_markup_percentage: String,
30 /// Application's App Store URL.\n
31 // Correct serde attribute construction - Use helper
32
33 pub appstore: String,
34 /// Application's GitHub page (for open-source projects).\n
35 // Correct serde attribute construction - Use helper
36
37 pub github: String,
38 /// Application's Google Play URL.\n
39 // Correct serde attribute construction - Use helper
40
41 pub googleplay: String,
42 /// Application's homepage URL.\n
43 // Correct serde attribute construction - Use helper
44
45 pub homepage: String,
46 /// Application name.\n
47 // Correct serde attribute construction - Use helper
48
49 pub name: String,
50 /// The URL to redirect to after a successful login.\n
51 // Correct serde attribute construction - Use helper
52
53 pub redirect_uri: String,
54 /// Scope Details.\n
55 // Correct serde attribute construction - Use helper
56 #[serde(skip_serializing_if = "Option::is_none")]
57 pub scopes: Option<Vec<String>>,
58 /// 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
59 // Correct serde attribute construction - Use helper
60
61 pub verification_uri: String,
62}
63