ghl-models 0.3.0

Rust data models (DTOs) for the GoHighLevel (HighLevel) API v2 and v3, generated from the official OpenAPI specifications
Documentation
// @generated by xtask/generate_models.py — do not edit by hand.
//! # ghl-models
//!
//! Rust data models (DTOs) for the [GoHighLevel](https://www.gohighlevel.com)
//! API, generated from HighLevel's official OpenAPI specifications.
//!
//! Both API versions are covered: [`v2`] (the current stable API, `Version:
//! 2021-07-28`) and [`v3`] (`Version: v3`). Every API module is behind a cargo
//! feature so you compile only the models you use — enabling everything means
//! thousands of structs.
//!
//! ```toml
//! [dependencies]
//! ghl-models = { version = "0.1", features = ["contacts", "invoices"] }
//! ```
//!
//! ## How these types are generated
//!
//! * Fields the spec marks `required` are non-`Option`; the rest are
//!   `Option<T>` that skip serialization when `None`, so partial updates work.
//! * Arrays are `Vec<T>` with `#[serde(default)]` — an absent list reads as empty.
//! * String enums are `String` with the allowed values in the doc comment.
//!   GoHighLevel introduces new values without notice, and a closed Rust enum
//!   would turn that into a deserialization failure.
//! * Anonymous nested objects and multi-branch compositions are
//!   `serde_json::Value`.
//! * Unknown fields in responses are ignored, never rejected, so upstream
//!   additions can't break your build.
//!
//! Regenerate with `xtask/generate_models.py` after HighLevel updates its specs.
//!
//! *Not affiliated with HighLevel Inc.*

#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod v2;
pub mod v3;