/// Color interpolation for numeric values using a preset color scheme.
#[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 NumericPresetColorRange {
    #[serde(rename = "low")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    low: f64,
    #[serde(rename = "high")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    high: f64,
    #[serde(rename = "preset")]
    preset: super::ColorScheme,
}
impl NumericPresetColorRange {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(low: f64, high: f64, preset: super::ColorScheme) -> Self {
        Self::builder().low(low).high(high).preset(preset).build()
    }
    #[inline]
    pub fn low(&self) -> f64 {
        self.low
    }
    #[inline]
    pub fn high(&self) -> f64 {
        self.high
    }
    #[inline]
    pub fn preset(&self) -> &super::ColorScheme {
        &self.preset
    }
}
