/// Will be returned once a subscriptions has been successfully created.
#[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 SubscriptionCreationSuccess {
    #[builder(
        custom(
            type = super::super::super::super::scout::compute::api::ComputeUnitResult,
            convert = Box::new
        )
    )]
    #[serde(rename = "unitResult")]
    unit_result: Box<super::super::super::super::scout::compute::api::ComputeUnitResult>,
}
impl SubscriptionCreationSuccess {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        unit_result: super::super::super::super::scout::compute::api::ComputeUnitResult,
    ) -> Self {
        Self::builder().unit_result(unit_result).build()
    }
    #[inline]
    pub fn unit_result(
        &self,
    ) -> &super::super::super::super::scout::compute::api::ComputeUnitResult {
        &*self.unit_result
    }
}
