1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Minimal Icinga Object (type + name)
use serde::{Deserialize, Serialize};
use crate::types::enums::object_type::IcingaObjectType;
/// the most minimal description of an icinga object
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct IcingaObject {
/// the name of the object
pub name: String,
/// the type of the object
#[serde(rename = "type")]
pub object_type: IcingaObjectType,
}