Skip to main content

ghl_models/v3/
workflows.rs

1//! `workflows` data models for GoHighLevel API V3 (2 types).
2//!
3//! Generated from HighLevel's official OpenAPI spec for the
4//! **Workflows** module. Every endpoint that uses these types, with its
5//! parameters, required scopes and enum values, is documented in the
6//! [`workflows` API reference](https://github.com/Shahroz/ghl-rs/blob/main/docs/api/workflows.md).
7//!
8//! Enable with `features = ["workflows"]`.
9// @generated by xtask/generate_models.py — do not edit by hand.
10// Source: https://github.com/GoHighLevel/highlevel-api-docs
11// Doc comments are HighLevel's own field descriptions, reflowed verbatim, so
12// they aren't held to rustdoc's markdown conventions.
13#![allow(
14    missing_docs,
15    clippy::doc_lazy_continuation,
16    clippy::doc_overindented_list_items
17)]
18
19use serde::{Deserialize, Serialize};
20
21/// `GetWorkflowSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
22#[derive(Debug, Clone, Default, Serialize, Deserialize)]
23pub struct GetWorkflowSuccessfulResponseDto {
24    #[serde(default, skip_serializing_if = "Vec::is_empty")]
25    pub workflows: Vec<WorkflowSchema>,
26}
27
28/// `WorkflowSchema` from the GoHighLevel OpenAPI spec.
29#[derive(Debug, Clone, Default, Serialize, Deserialize)]
30pub struct WorkflowSchema {
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub id: Option<String>,
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub name: Option<String>,
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub status: Option<String>,
37    #[serde(default, skip_serializing_if = "Option::is_none")]
38    pub version: Option<f64>,
39    #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")]
40    pub created_at: Option<String>,
41    #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")]
42    pub updated_at: Option<String>,
43    #[serde(
44        rename = "locationId",
45        default,
46        skip_serializing_if = "Option::is_none"
47    )]
48    pub location_id: Option<String>,
49}