nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ComputeWithUnitsResponse {
    #[builder(custom(type = super::ComputeNodeResponse, convert = Box::new))]
    #[serde(rename = "computeResult")]
    compute_result: Box<super::ComputeNodeResponse>,
    #[builder(custom(type = super::ComputeUnitResult, convert = Box::new))]
    #[serde(rename = "computeUnit")]
    compute_unit: Box<super::ComputeUnitResult>,
}
impl ComputeWithUnitsResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        compute_result: super::ComputeNodeResponse,
        compute_unit: super::ComputeUnitResult,
    ) -> Self {
        Self::builder().compute_result(compute_result).compute_unit(compute_unit).build()
    }
    #[inline]
    pub fn compute_result(&self) -> &super::ComputeNodeResponse {
        &*self.compute_result
    }
    #[inline]
    pub fn compute_unit(&self) -> &super::ComputeUnitResult {
        &*self.compute_unit
    }
}