/// Cutoff frequency must be strictly positive.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith,
    Copy
)]
#[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 SignalFilterNonPositiveCutoffFrequency {
    #[serde(rename = "cutoffFrequency")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    cutoff_frequency: f64,
}
impl SignalFilterNonPositiveCutoffFrequency {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(cutoff_frequency: f64) -> Self {
        Self::builder().cutoff_frequency(cutoff_frequency).build()
    }
    #[inline]
    pub fn cutoff_frequency(&self) -> f64 {
        self.cutoff_frequency
    }
}
impl conjure_error::ErrorType for SignalFilterNonPositiveCutoffFrequency {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:SignalFilterNonPositiveCutoffFrequency"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["cutoffFrequency"]
    }
}
