#[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 Range {
    #[builder(custom(type = super::Timestamp, convert = Box::new))]
    #[serde(rename = "start")]
    start: Box<super::Timestamp>,
    #[builder(custom(type = super::Timestamp, convert = Box::new))]
    #[serde(rename = "end")]
    end: Box<super::Timestamp>,
}
impl Range {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(start: super::Timestamp, end: super::Timestamp) -> Self {
        Self::builder().start(start).end(end).build()
    }
    #[inline]
    pub fn start(&self) -> &super::Timestamp {
        &*self.start
    }
    #[inline]
    pub fn end(&self) -> &super::Timestamp {
        &*self.end
    }
}
