#[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 DateTimeField {
    #[builder(into)]
    #[serde(rename = "name")]
    name: String,
    #[serde(rename = "value")]
    value: conjure_object::DateTime<conjure_object::Utc>,
    #[serde(rename = "operator")]
    operator: super::Operator,
}
impl DateTimeField {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        name: impl Into<String>,
        value: conjure_object::DateTime<conjure_object::Utc>,
        operator: super::Operator,
    ) -> Self {
        Self::builder().name(name).value(value).operator(operator).build()
    }
    #[inline]
    pub fn name(&self) -> &str {
        &*self.name
    }
    #[inline]
    pub fn value(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.value
    }
    #[inline]
    pub fn operator(&self) -> &super::Operator {
        &self.operator
    }
}
