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(
23 rename = "relationship_number",
24 skip_serializing_if = "Option::is_none"
25 )]
26 pub relationship_number: Option<String>,
27}
28
29#[derive(Debug, Clone, Serialize, Deserialize)]
30pub struct SnapshotShareLinkResponse {
31 #[serde(rename = "shareLink")]
32 pub share_link: Option<String>,
33 pub url: Option<String>,
34}