Skip to main content

ghl_models/v2/
workflows.rs

1// @generated by xtask/generate_models.py — do not edit by hand.
2// Source: https://github.com/GoHighLevel/highlevel-api-docs
3// Doc comments are HighLevel's own field descriptions, reflowed verbatim, so
4// they aren't held to rustdoc's markdown conventions.
5#![allow(
6    missing_docs,
7    clippy::doc_lazy_continuation,
8    clippy::doc_overindented_list_items
9)]
10
11use serde::{Deserialize, Serialize};
12
13/// `GetWorkflowSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
14#[derive(Debug, Clone, Default, Serialize, Deserialize)]
15pub struct GetWorkflowSuccessfulResponseDto {
16    #[serde(default, skip_serializing_if = "Vec::is_empty")]
17    pub workflows: Vec<WorkflowSchema>,
18}
19
20/// `WorkflowSchema` from the GoHighLevel OpenAPI spec.
21#[derive(Debug, Clone, Default, Serialize, Deserialize)]
22pub struct WorkflowSchema {
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub name: Option<String>,
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub status: Option<String>,
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub version: Option<f64>,
31    #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")]
32    pub created_at: Option<String>,
33    #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")]
34    pub updated_at: Option<String>,
35    #[serde(
36        rename = "locationId",
37        default,
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub location_id: Option<String>,
41}