#[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 BucketedNumericPlot {
    #[builder(default, list(item(type = super::super::super::super::api::Timestamp)))]
    #[serde(rename = "timestamps", skip_serializing_if = "Vec::is_empty", default)]
    timestamps: Vec<super::super::super::super::api::Timestamp>,
    #[builder(default, list(item(type = super::NumericBucket)))]
    #[serde(rename = "buckets", skip_serializing_if = "Vec::is_empty", default)]
    buckets: Vec<super::NumericBucket>,
}
impl BucketedNumericPlot {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The end of the bucket, exclusive.
    #[inline]
    pub fn timestamps(&self) -> &[super::super::super::super::api::Timestamp] {
        &*self.timestamps
    }
    #[inline]
    pub fn buckets(&self) -> &[super::NumericBucket] {
        &*self.buckets
    }
}
