deriv_api_schema/app_update.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/app_update/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/// Information of the updated application.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct AppUpdate {
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 #[serde(skip_serializing_if = "Option::is_none")]
25 pub app_id: Option<i64>,
26 /// Markup added to contract prices (as a percentage of contract payout).\n
27 // Correct serde attribute construction - Use helper
28 #[serde(skip_serializing_if = "Option::is_none")]
29 pub app_markup_percentage: Option<String>,
30 /// Application's App Store URL.\n
31 // Correct serde attribute construction - Use helper
32 #[serde(skip_serializing_if = "Option::is_none")]
33 pub appstore: Option<String>,
34 /// Application's GitHub page (for open-source projects).\n
35 // Correct serde attribute construction - Use helper
36 #[serde(skip_serializing_if = "Option::is_none")]
37 pub github: Option<String>,
38 /// Application's Google Play URL.\n
39 // Correct serde attribute construction - Use helper
40 #[serde(skip_serializing_if = "Option::is_none")]
41 pub googleplay: Option<String>,
42 /// Application's homepage URL.\n
43 // Correct serde attribute construction - Use helper
44 #[serde(skip_serializing_if = "Option::is_none")]
45 pub homepage: Option<String>,
46 /// Application name.\n
47 // Correct serde attribute construction - Use helper
48 #[serde(skip_serializing_if = "Option::is_none")]
49 pub name: Option<String>,
50 /// The URL to redirect to after a successful login.\n
51 // Correct serde attribute construction - Use helper
52 #[serde(skip_serializing_if = "Option::is_none")]
53 pub redirect_uri: Option<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 be sent to the client's email, otherwise only the token will be sent.\n
59 // Correct serde attribute construction - Use helper
60 #[serde(skip_serializing_if = "Option::is_none")]
61 pub verification_uri: Option<String>,
62}
63