/// Order must be positive even numbers for bidirectional filters.
/// Bidirectional filters are applied once forwards and once backwards, effectively doubling order.
/// Doubled again for bandpass/bandstop filters, requiring a multiple of 4 for filter order.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SignalFilterInvalidOrder {
    #[serde(rename = "order")]
    order: i32,
}
impl SignalFilterInvalidOrder {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(order: i32) -> Self {
        Self::builder().order(order).build()
    }
    #[inline]
    pub fn order(&self) -> i32 {
        self.order
    }
}
impl conjure_error::ErrorType for SignalFilterInvalidOrder {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:SignalFilterInvalidOrder"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["order"]
    }
}
