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