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 Cartesian3dBucket {
    #[builder(default, into)]
    #[serde(rename = "minX", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min_x: Option<f64>,
    #[builder(default, into)]
    #[serde(rename = "maxX", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_x: Option<f64>,
    #[serde(rename = "meanX")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    mean_x: f64,
    #[builder(default, into)]
    #[serde(rename = "minY", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min_y: Option<f64>,
    #[builder(default, into)]
    #[serde(rename = "maxY", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_y: Option<f64>,
    #[serde(rename = "meanY")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    mean_y: f64,
    #[builder(default, into)]
    #[serde(rename = "minZ", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min_z: Option<f64>,
    #[builder(default, into)]
    #[serde(rename = "maxZ", skip_serializing_if = "Option::is_none", default)]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_z: Option<f64>,
    #[serde(rename = "meanZ")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    mean_z: f64,
    #[builder(custom(type = super::Point3d, convert = Box::new))]
    #[serde(rename = "minXPoint")]
    min_x_point: Box<super::Point3d>,
    #[builder(custom(type = super::Point3d, convert = Box::new))]
    #[serde(rename = "maxXPoint")]
    max_x_point: Box<super::Point3d>,
    #[builder(custom(type = super::Point3d, convert = Box::new))]
    #[serde(rename = "minYPoint")]
    min_y_point: Box<super::Point3d>,
    #[builder(custom(type = super::Point3d, convert = Box::new))]
    #[serde(rename = "maxYPoint")]
    max_y_point: Box<super::Point3d>,
    #[builder(custom(type = super::Point3d, convert = Box::new))]
    #[serde(rename = "minZPoint")]
    min_z_point: Box<super::Point3d>,
    #[builder(custom(type = super::Point3d, convert = Box::new))]
    #[serde(rename = "maxZPoint")]
    max_z_point: Box<super::Point3d>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "minTimestamp")]
    min_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "maxTimestamp")]
    max_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[serde(rename = "count")]
    count: conjure_object::SafeLong,
}
impl Cartesian3dBucket {
    #[deprecated(note = "Switching to point-based min/maxes")]
    #[inline]
    pub fn min_x(&self) -> Option<f64> {
        self.min_x.as_ref().map(|o| *o)
    }
    #[deprecated(note = "Switching to point-based min/maxes")]
    #[inline]
    pub fn max_x(&self) -> Option<f64> {
        self.max_x.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn mean_x(&self) -> f64 {
        self.mean_x
    }
    #[deprecated(note = "Switching to point-based min/maxes")]
    #[inline]
    pub fn min_y(&self) -> Option<f64> {
        self.min_y.as_ref().map(|o| *o)
    }
    #[deprecated(note = "Switching to point-based min/maxes")]
    #[inline]
    pub fn max_y(&self) -> Option<f64> {
        self.max_y.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn mean_y(&self) -> f64 {
        self.mean_y
    }
    #[deprecated(note = "Switching to point-based min/maxes")]
    #[inline]
    pub fn min_z(&self) -> Option<f64> {
        self.min_z.as_ref().map(|o| *o)
    }
    #[deprecated(note = "Switching to point-based min/maxes")]
    #[inline]
    pub fn max_z(&self) -> Option<f64> {
        self.max_z.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn mean_z(&self) -> f64 {
        self.mean_z
    }
    #[inline]
    pub fn min_x_point(&self) -> &super::Point3d {
        &*self.min_x_point
    }
    #[inline]
    pub fn max_x_point(&self) -> &super::Point3d {
        &*self.max_x_point
    }
    #[inline]
    pub fn min_y_point(&self) -> &super::Point3d {
        &*self.min_y_point
    }
    #[inline]
    pub fn max_y_point(&self) -> &super::Point3d {
        &*self.max_y_point
    }
    #[inline]
    pub fn min_z_point(&self) -> &super::Point3d {
        &*self.min_z_point
    }
    #[inline]
    pub fn max_z_point(&self) -> &super::Point3d {
        &*self.max_z_point
    }
    #[inline]
    pub fn min_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.min_timestamp
    }
    #[inline]
    pub fn max_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.max_timestamp
    }
    #[inline]
    pub fn count(&self) -> conjure_object::SafeLong {
        self.count
    }
}