#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct EventsHistogramBucket {
#[builder(custom(type = super::super::api::Timestamp, convert = Box::new))]
#[serde(rename = "startInclusive")]
start_inclusive: Box<super::super::api::Timestamp>,
#[builder(custom(type = super::super::api::Timestamp, convert = Box::new))]
#[serde(rename = "endExclusive")]
end_exclusive: Box<super::super::api::Timestamp>,
#[serde(rename = "count")]
count: i32,
}
impl EventsHistogramBucket {
#[inline]
pub fn new(
start_inclusive: super::super::api::Timestamp,
end_exclusive: super::super::api::Timestamp,
count: i32,
) -> Self {
Self::builder()
.start_inclusive(start_inclusive)
.end_exclusive(end_exclusive)
.count(count)
.build()
}
#[inline]
pub fn start_inclusive(&self) -> &super::super::api::Timestamp {
&*self.start_inclusive
}
#[inline]
pub fn end_exclusive(&self) -> &super::super::api::Timestamp {
&*self.end_exclusive
}
#[inline]
pub fn count(&self) -> i32 {
self.count
}
}