#[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 ModuleSummary {
    #[builder(custom(type = super::ModuleMetadata, convert = Box::new))]
    #[serde(rename = "metadata")]
    metadata: Box<super::ModuleMetadata>,
    #[builder(custom(type = super::ModuleVersionMetadata, convert = Box::new))]
    #[serde(rename = "latest")]
    latest: Box<super::ModuleVersionMetadata>,
}
impl ModuleSummary {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        metadata: super::ModuleMetadata,
        latest: super::ModuleVersionMetadata,
    ) -> Self {
        Self::builder().metadata(metadata).latest(latest).build()
    }
    #[inline]
    pub fn metadata(&self) -> &super::ModuleMetadata {
        &*self.metadata
    }
    #[inline]
    pub fn latest(&self) -> &super::ModuleVersionMetadata {
        &*self.latest
    }
}
