/// Show only points whose attribute value falls within [min, max].
#[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 SpatialVolumetricFilterValueRange {
    #[builder(into)]
    #[serde(rename = "attribute")]
    attribute: String,
    #[serde(rename = "min")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    min: f64,
    #[serde(rename = "max")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max: f64,
}
impl SpatialVolumetricFilterValueRange {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(attribute: impl Into<String>, min: f64, max: f64) -> Self {
        Self::builder().attribute(attribute).min(min).max(max).build()
    }
    #[inline]
    pub fn attribute(&self) -> &str {
        &*self.attribute
    }
    #[inline]
    pub fn min(&self) -> f64 {
        self.min
    }
    #[inline]
    pub fn max(&self) -> f64 {
        self.max
    }
}
