#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SeriesVariable {
#[builder(custom(type = super::SelectSeries, convert = Box::new))]
#[serde(rename = "select")]
select: Box<super::SelectSeries>,
#[builder(default, set(item(type = super::StringConstant)))]
#[serde(
rename = "groupByTags",
skip_serializing_if = "std::collections::BTreeSet::is_empty",
default
)]
group_by_tags: std::collections::BTreeSet<super::StringConstant>,
}
impl SeriesVariable {
#[inline]
pub fn new(select: super::SelectSeries) -> Self {
Self::builder().select(select).build()
}
#[inline]
pub fn select(&self) -> &super::SelectSeries {
&*self.select
}
#[inline]
pub fn group_by_tags(&self) -> &std::collections::BTreeSet<super::StringConstant> {
&self.group_by_tags
}
}