Skip to main content

nominal_api/conjure/objects/scout/compute/resolved/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    Copy
8)]
9#[serde(crate = "conjure_object::serde")]
10#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
11#[conjure_object::private::staged_builder::staged_builder]
12#[builder(crate = conjure_object::private::staged_builder, update, inline)]
13pub struct BandStopConfiguration {
14    #[serde(rename = "lowStopbandFrequency")]
15    #[derive_with(with = conjure_object::private::DoubleWrapper)]
16    low_stopband_frequency: f64,
17    #[serde(rename = "highStopbandFrequency")]
18    #[derive_with(with = conjure_object::private::DoubleWrapper)]
19    high_stopband_frequency: f64,
20}
21impl BandStopConfiguration {
22    /// Constructs a new instance of the type.
23    #[inline]
24    pub fn new(low_stopband_frequency: f64, high_stopband_frequency: f64) -> Self {
25        Self::builder()
26            .low_stopband_frequency(low_stopband_frequency)
27            .high_stopband_frequency(high_stopband_frequency)
28            .build()
29    }
30    #[inline]
31    pub fn low_stopband_frequency(&self) -> f64 {
32        self.low_stopband_frequency
33    }
34    #[inline]
35    pub fn high_stopband_frequency(&self) -> f64 {
36        self.high_stopband_frequency
37    }
38}