zabbix_api/macro/
model.rs

1use serde::{Deserialize, Serialize};
2
3/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/usermacro/object
4#[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/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/usermacro/object
15#[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}