highlevel-api 0.2.0

Unofficial Rust SDK for the GoHighLevel (HighLevel) API
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Snapshot {
    pub id: String,
    pub name: String,
    #[serde(rename = "type")]
    pub type_: Option<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GetSnapshotsResponse {
    pub snapshots: Vec<Snapshot>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SnapshotShareLinkParams {
    #[serde(rename = "snapshot_id")]
    pub snapshot_id: String,
    pub share_type: String,
    #[serde(
        rename = "relationship_number",
        skip_serializing_if = "Option::is_none"
    )]
    pub relationship_number: Option<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SnapshotShareLinkResponse {
    #[serde(rename = "shareLink")]
    pub share_link: Option<String>,
    pub url: Option<String>,
}