1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Generated automatically by schema_generator.rs - DO NOT EDIT.
// Source: ./deriv-api-docs/config/v3/verify_email/send.json
// Use direct crate names for imports within generated files
use serde::{Deserialize, Serialize};
use serde_json::Value;
// Import shared types from the *same* crate
use crate::signup_device::SignupDevice;
// It's a struct
/// [Optional] Extra parameters that can be attached to the verify email link URL.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct UrlParameters {
/// [Optional] Affiliate token, within 32 characters.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub affiliate_token: Option<String>,
/// [Optional] Date of first contact, format: yyyy-mm-dd in GMT timezone.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub date_first_contact: Option<String>,
/// [Optional] Google Click Identifier to track source.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub gclid_url: Option<String>,
/// [Optional] The amount to withdraw to the payment agent. Only allowed for payment agent withdraw.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub pa_amount: Option<String>,
/// [Optional] The currency code. Only allowed for payment agent withdraw.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub pa_currency: Option<String>,
/// [Optional] The payment agent loginid received from the `paymentagent_list` call. Only allowed for payment agent withdraw.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub pa_loginid: Option<String>,
/// [Optional] Remarks about the withdraw. Only letters, numbers, space, period, comma, - ' are allowed. Only allowed for payment agent withdraw.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub pa_remarks: Option<String>,
/// [Optional] The page ID to redirect to\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub redirect_to: Option<i64>,
/// [Optional] Show whether user has used mobile or desktop.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub signup_device: Option<SignupDevice>,
/// [Optional] Identifier of particular ad. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_ad_id: Option<Value>,
/// [Optional] Identifier of ad group in the campaign. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_adgroup_id: Option<Value>,
/// [Optional] Unique identifier of click on AdRoll ads platform. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_adrollclk_id: Option<Value>,
/// [Optional] Identifies a specific product promotion or strategic campaign such as a spring sale or other promotions. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_campaign: Option<Value>,
/// [Optional] Identifier of paid ad campaign. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_campaign_id: Option<Value>,
/// [Optional] Used to differentiate similar content, or links within the same ad. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_content: Option<Value>,
/// [Optional] Unique identifier of click on Facebook ads platform. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_fbcl_id: Option<Value>,
/// [Optional] Unique visitor identifier on Google Ads platform. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_gl_client_id: Option<Value>,
/// [Optional] Identifies the medium the link was used upon such as: email, CPC, or other methods of sharing. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_medium: Option<Value>,
/// [Optional] Unique click identifier on Microsoft Bing ads platform. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_msclk_id: Option<Value>,
/// [Optional] Identifies the source of traffic such as: search engine, newsletter, or other referral. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_source: Option<Value>,
/// [Optional] Used to send information related to the campaign term like paid search keywords. Value must match Regex pattern to be recorded\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub utm_term: Option<Value>,
}