zabbix_api/macro/
model.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Deserialize, Debug)]
5pub struct ZabbixGlobalMacro {
6 #[serde(rename = "globalmacroid")]
7 pub id: String,
8 pub r#macro: String,
9 pub value: String,
10 pub r#type: u8,
11 pub description: String,
12}
13
14#[derive(Serialize, Deserialize, Debug)]
16pub struct ZabbixHostMacro {
17 #[serde(rename = "hostmacroid")]
18 pub id: String,
19 #[serde(rename = "hostid")]
20 pub host_id: String,
21 pub r#macro: String,
22 pub value: String,
23 pub r#type: u8,
24 pub description: String,
25}