/// At least one input is missing a unit.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct UnitsMissing {
    #[builder(default, set(item(type = conjure_object::ResourceIdentifier)))]
    #[serde(
        rename = "seriesRids",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    series_rids: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    #[builder(default, set(item(type = super::DataSourceAndChannel)))]
    #[serde(
        rename = "channels",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    channels: std::collections::BTreeSet<super::DataSourceAndChannel>,
}
impl UnitsMissing {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[deprecated(note = "Use channels instead.\n")]
    #[inline]
    pub fn series_rids(
        &self,
    ) -> &std::collections::BTreeSet<conjure_object::ResourceIdentifier> {
        &self.series_rids
    }
    #[inline]
    pub fn channels(&self) -> &std::collections::BTreeSet<super::DataSourceAndChannel> {
        &self.channels
    }
}
