#[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 CartesianBucket {
    #[serde(rename = "minX")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min_x: f64,
    #[serde(rename = "maxX")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_x: f64,
    #[serde(rename = "minY")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min_y: f64,
    #[serde(rename = "maxY")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_y: f64,
    #[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 CartesianBucket {
    #[inline]
    pub fn min_x(&self) -> f64 {
        self.min_x
    }
    #[inline]
    pub fn max_x(&self) -> f64 {
        self.max_x
    }
    #[inline]
    pub fn min_y(&self) -> f64 {
        self.min_y
    }
    #[inline]
    pub fn max_y(&self) -> f64 {
        self.max_y
    }
    #[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
    }
}
