icinga2_api/types/common/function.rs
1//! Function
2//!
3//! [Definition in Icinga Source](https://github.com/Icinga/icinga2/blob/master/lib/base/function.ti)
4
5use serde::{Deserialize, Serialize};
6
7use crate::types::enums::object_type::IcingaObjectType;
8
9/// the description of an icinga function
10#[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
11pub struct IcingaFunction {
12 /// the arguments
13 pub arguments: Vec<String>,
14 /// is this deprecated
15 pub deprecated: bool,
16 /// the name
17 pub name: String,
18 /// is this command side-effect free
19 pub side_effect_free: bool,
20 /// type of object
21 #[serde(rename = "type")]
22 pub object_type: IcingaObjectType,
23}