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
//! `campaigns` data models for GoHighLevel API V3 (2 types).
//!
//! Generated from HighLevel's official OpenAPI spec for the
//! **Campaigns** module. Every endpoint that uses these types, with its
//! parameters, required scopes and enum values, is documented in the
//! [`campaigns` API reference](https://github.com/Shahroz/ghl-rs/blob/main/docs/api/campaigns.md).
//!
//! Enable with `features = ["campaigns"]`.
// @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};
/// `CampaignsSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CampaignsSuccessfulResponseDto {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub campaigns: Vec<CampaignsSchema>,
}
/// `campaignsSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CampaignsSchema {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(
rename = "locationId",
default,
skip_serializing_if = "Option::is_none"
)]
pub location_id: Option<String>,
}