deriv_api_schema/oauth_app_item.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/oauth_apps/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 OauthAppItem {
17 /// Application ID.\n
18 // Correct serde attribute construction - Use helper
19
20 pub app_id: i64,
21 /// Markup added to contract prices (as a percentage of contract payout)\n
22 // Correct serde attribute construction - Use helper
23
24 pub app_markup_percentage: String,
25 /// The last date which the application has been used.\n
26 // Correct serde attribute construction - Use helper
27 #[serde(skip_serializing_if = "Option::is_none")]
28 pub last_used: Option<Value>,
29 /// Application name\n
30 // Correct serde attribute construction - Use helper
31
32 pub name: String,
33 /// Boolean value: 1 or 0, indicating 1 if app is an official app and 0 incase of unofficial app\n
34 // Correct serde attribute construction - Use helper
35
36 pub official: String,
37 /// The list of permission scopes grant for each app.\n
38 // Correct serde attribute construction - Use helper
39
40 pub scopes: Vec<String>,
41}
42