use super::{AddressableFvo, PerformanceIndicatorSpecificationRefOrValueFvo};
use crate::common::extensible::ExtensibleFvo;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct PerformanceIndicatorGroupSpecificationFvo {
#[serde(flatten)]
pub addressable_fvo: AddressableFvo,
#[serde(flatten)]
pub extensible_fvo: ExtensibleFvo,
#[serde(rename = "groupCategory")]
pub group_category: String,
pub name: String,
#[serde(rename = "performanceIndicatorSpecification")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub performance_indicator_specification: Vec<PerformanceIndicatorSpecificationRefOrValueFvo>,
}
impl std::fmt::Display for PerformanceIndicatorGroupSpecificationFvo {
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 PerformanceIndicatorGroupSpecificationFvo {
type Target = AddressableFvo;
fn deref(&self) -> &Self::Target {
&self.addressable_fvo
}
}
impl std::ops::DerefMut for PerformanceIndicatorGroupSpecificationFvo {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.addressable_fvo
}
}