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
// @generated by xtask/generate_models.py — do not edit by hand.
// Source: https://github.com/GoHighLevel/highlevel-api-docs
// Doc comments are HighLevel's own field descriptions, reflowed verbatim, so
// they aren't held to rustdoc's markdown conventions.
#![allow(
missing_docs,
clippy::doc_lazy_continuation,
clippy::doc_overindented_list_items
)]
use serde::{Deserialize, Serialize};
/// `DeleteLinksSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct DeleteLinksSuccessfulResponseDto {
/// Indicates whether the link was successfully deleted (legacy field, misspelled). Use
/// `succeeded` with x-api-version: v3.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub succeded: Option<bool>,
/// Indicates whether the link was successfully deleted.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub succeeded: Option<bool>,
}
/// `GetLinkSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetLinkSuccessfulResponseDto {
/// The trigger link object
#[serde(default, skip_serializing_if = "Option::is_none")]
pub link: Option<LinkSchema>,
}
/// `GetLinksSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetLinksSuccessfulResponseDto {
/// List of trigger links
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub links: Vec<LinkSchema>,
}
/// `LinkSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LinkSchema {
/// Unique identifier of the trigger link
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Display name of the trigger link
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// URL or variable to redirect to when the trigger link is clicked
#[serde(
rename = "redirectTo",
default,
skip_serializing_if = "Option::is_none"
)]
pub redirect_to: Option<String>,
/// Template variable key used to reference this trigger link
#[serde(rename = "fieldKey", default, skip_serializing_if = "Option::is_none")]
pub field_key: Option<String>,
/// Location ID this trigger link belongs to
#[serde(
rename = "locationId",
default,
skip_serializing_if = "Option::is_none"
)]
pub location_id: Option<String>,
}
/// `LinkUpdateDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LinkUpdateDto {
/// Display name of the trigger link
/// Required by the API.
pub name: String,
/// URL or variable to redirect to when the trigger link is clicked
/// Required by the API.
#[serde(rename = "redirectTo")]
pub redirect_to: String,
}
/// `LinksDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LinksDto {
/// Location ID of the business profile
/// Required by the API.
#[serde(rename = "locationId")]
pub location_id: String,
/// Display name of the trigger link
/// Required by the API.
pub name: String,
/// URL or variable to redirect to when the trigger link is clicked
/// Required by the API.
#[serde(rename = "redirectTo")]
pub redirect_to: String,
}