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
/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers
*
* The version of the OpenAPI document: 1.131.9
*
* 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 {
/// Optional custom domain ID (UUID). Leave empty to use the default domain. Only provide if the user explicitly asks for a specific custom domain.
#[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>,
/// Where visitors are sent once the link has expired. Empty serves the built-in expired page instead.
#[serde(rename = "expiredDestination", skip_serializing_if = "Option::is_none")]
pub expired_destination: Option<String>,
/// When the link stops resolving. Empty means it never expires. Must be in the future. Once it passes the link is removed from the workspace and only the expired destination is served.
#[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
pub expires_at: Option<String>,
/// Optional pre-generated link ID (UUID). Same contract as on CreateLinkRequest: the caller may pick the id so a page can navigate to the link before it exists, and it is skipped from the AI tool schema so the model is never invited to invent one.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: 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>,
/// What the user is trying to achieve with this link, in one or two sentences. Lead scoring weights the link from this, and the link's assistant conversations read it as context, so it is restated whenever the workflow changes shape.
#[serde(rename = "purpose", skip_serializing_if = "Option::is_none")]
pub purpose: 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,
expired_destination: None,
expires_at: None,
id: None,
metadata: None,
name: None,
purpose: None,
qrcode_design_id: None,
qrcode_template_id: None,
shortlink: None,
tags: None,
title,
wait_for_qrcode: None,
}
}
}