Skip to main content

nominal_api/conjure/objects/scout/compute/api/
band_stop_configuration.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    conjure_object::private::DeriveWith
7)]
8#[serde(crate = "conjure_object::serde")]
9#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[conjure_object::private::staged_builder::staged_builder]
11#[builder(crate = conjure_object::private::staged_builder, update, inline)]
12pub struct BandStopConfiguration {
13    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
14    #[serde(rename = "lowStopbandFrequency")]
15    low_stopband_frequency: Box<super::DoubleConstant>,
16    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
17    #[serde(rename = "highStopbandFrequency")]
18    high_stopband_frequency: Box<super::DoubleConstant>,
19}
20impl BandStopConfiguration {
21    /// Constructs a new instance of the type.
22    #[inline]
23    pub fn new(
24        low_stopband_frequency: super::DoubleConstant,
25        high_stopband_frequency: super::DoubleConstant,
26    ) -> Self {
27        Self::builder()
28            .low_stopband_frequency(low_stopband_frequency)
29            .high_stopband_frequency(high_stopband_frequency)
30            .build()
31    }
32    #[inline]
33    pub fn low_stopband_frequency(&self) -> &super::DoubleConstant {
34        &*self.low_stopband_frequency
35    }
36    #[inline]
37    pub fn high_stopband_frequency(&self) -> &super::DoubleConstant {
38        &*self.high_stopband_frequency
39    }
40}