nominal-api-conjure 0.1362.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Dimension of a node in pixels.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith,
    Copy
)]
#[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 NodeDimension {
    #[serde(rename = "width")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    width: f64,
    #[serde(rename = "height")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    height: f64,
}
impl NodeDimension {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(width: f64, height: f64) -> Self {
        Self::builder().width(width).height(height).build()
    }
    #[inline]
    pub fn width(&self) -> f64 {
        self.width
    }
    #[inline]
    pub fn height(&self) -> f64 {
        self.height
    }
}