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