use serde::{Deserialize, Serialize};
use crate::r#macro::macrotype::MacroType;
#[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,
}
#[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: MacroType,
pub description: String,
}