/// The fundamental base dimensions and their exponents, whose product compose 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 UnitDimension {
    #[builder(default, map(key(type = String, into), value(type = i32)))]
    #[serde(
        rename = "baseDimensions",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    base_dimensions: std::collections::BTreeMap<String, i32>,
}
impl UnitDimension {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn base_dimensions(&self) -> &std::collections::BTreeMap<String, i32> {
        &self.base_dimensions
    }
}
