nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// 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 = super::super::super::super::api::LogicalSeriesRid))
    )]
    #[serde(
        rename = "seriesRids",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    series_rids: std::collections::BTreeSet<
        super::super::super::super::api::LogicalSeriesRid,
    >,
    #[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<super::super::super::super::api::LogicalSeriesRid> {
        &self.series_rids
    }
    #[inline]
    pub fn channels(&self) -> &std::collections::BTreeSet<super::DataSourceAndChannel> {
        &self.channels
    }
}