highlevel_api/apis/snapshots/
types.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct Snapshot {
6 pub id: String,
7 pub name: String,
8 #[serde(rename = "type")]
9 pub type_: Option<String>,
10}
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct GetSnapshotsResponse {
14 pub snapshots: Vec<Snapshot>,
15}
16
17#[derive(Debug, Clone, Serialize, Deserialize)]
18pub struct SnapshotShareLinkParams {
19 #[serde(rename = "snapshot_id")]
20 pub snapshot_id: String,
21 pub share_type: String,
22 #[serde(rename = "relationship_number", skip_serializing_if = "Option::is_none")]
23 pub relationship_number: Option<String>,
24}
25
26#[derive(Debug, Clone, Serialize, Deserialize)]
27pub struct SnapshotShareLinkResponse {
28 #[serde(rename = "shareLink")]
29 pub share_link: Option<String>,
30 pub url: Option<String>,
31}