1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use serde::{Deserialize, Serialize};

/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/usermacro/object
#[derive(Deserialize,Debug)]
pub struct ZabbixGlobalMacro {
    #[serde(rename = "globalmacroid")]
    pub id: String,
    pub r#macro: String,
    pub value: String,
    pub r#type: u8,
    pub description: String
}

/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/usermacro/object
#[derive(Serialize,Deserialize,Debug)]
pub struct ZabbixHostMacro {
    #[serde(rename = "hostmacroid")]
    pub id: String,
    #[serde(rename = "hostid")]
    pub host_id: String,
    pub r#macro: String,
    pub value: String,
    pub r#type: u8,
    pub description: String
}