use super::{AddressableMvo, PerformanceIndicatorSpecificationRefOrValueMvo};
use crate::common::extensible::Extensible;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct PerformanceIndicatorGroupSpecificationMvo {
#[serde(flatten)]
pub addressable_mvo: AddressableMvo,
#[serde(flatten)]
pub extensible: Extensible,
#[serde(rename = "groupCategory")]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub group_category: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "performanceIndicatorSpecification")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub performance_indicator_specification: Vec<PerformanceIndicatorSpecificationRefOrValueMvo>,
}
impl std::fmt::Display for PerformanceIndicatorGroupSpecificationMvo {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}
impl std::ops::Deref for PerformanceIndicatorGroupSpecificationMvo {
type Target = AddressableMvo;
fn deref(&self) -> &Self::Target {
&self.addressable_mvo
}
}
impl std::ops::DerefMut for PerformanceIndicatorGroupSpecificationMvo {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.addressable_mvo
}
}