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
/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers
*
* The version of the OpenAPI document: 1.91.4
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CreateThankYouLinkRequest : Request to create a new thank you page link.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateThankYouLinkRequest {
#[serde(rename = "customDomainId", skip_serializing_if = "Option::is_none")]
pub custom_domain_id: Option<String>,
/// Optional description displayed on the thank you page.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Directory to organize this link into. If empty, link is created at root level.
#[serde(rename = "directoryId", skip_serializing_if = "Option::is_none")]
pub directory_id: Option<String>,
/// The lead goal definition for the link. This is a text field that can be used to describe the lead goal or purpose of the link.
#[serde(rename = "leadGoalDefinition", skip_serializing_if = "Option::is_none")]
pub lead_goal_definition: Option<String>,
/// The lead target definition for the link. This is a text field that can be used to describe the target lead criteria for the link.
#[serde(rename = "leadTargetDefinition", skip_serializing_if = "Option::is_none")]
pub lead_target_definition: Option<String>,
/// A map of string key-value pairs. All values must be strings. Nested objects or arrays are not supported. Maximum of 50 keys.
#[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
pub metadata: Option<std::collections::HashMap<String, String>>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// The QR Code design ID (UUID). If you include this value, the specified design will be associated to this link only. A design can belong to one record at a time (Link or QR Code Template). Trying to use a design that's already assigned will cause an error.
#[serde(rename = "qrcodeDesignId", skip_serializing_if = "Option::is_none")]
pub qrcode_design_id: Option<String>,
/// The ID of the QR Code template (UUID) If not given, the default QR Code template will be used to generate the QR Code design.
#[serde(rename = "qrcodeTemplateId", skip_serializing_if = "Option::is_none")]
pub qrcode_template_id: Option<String>,
/// The shortlink for the link If not given, the shortlink will be generated by the system.
#[serde(rename = "shortlink", skip_serializing_if = "Option::is_none")]
pub shortlink: Option<String>,
/// List of tags to associate with the link. If a tag doesn't exist, it will be created.
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>,
/// Title displayed on the thank you page. This field is required.
#[serde(rename = "title")]
pub title: String,
/// Wait for QR code generation to complete. Note: This makes the request slower compared to asynchronous generation.
#[serde(rename = "waitForQrcode", skip_serializing_if = "Option::is_none")]
pub wait_for_qrcode: Option<bool>,
}
impl CreateThankYouLinkRequest {
/// Request to create a new thank you page link.
pub fn new(title: String) -> CreateThankYouLinkRequest {
CreateThankYouLinkRequest {
custom_domain_id: None,
description: None,
directory_id: None,
lead_goal_definition: None,
lead_target_definition: None,
metadata: None,
name: None,
qrcode_design_id: None,
qrcode_template_id: None,
shortlink: None,
tags: None,
title,
wait_for_qrcode: None,
}
}
}