nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// A single point in a frequency domain plot.
#[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 FrequencyPoint {
    #[serde(rename = "frequency")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    frequency: f64,
    #[serde(rename = "amplitude")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    amplitude: f64,
}
impl FrequencyPoint {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(frequency: f64, amplitude: f64) -> Self {
        Self::builder().frequency(frequency).amplitude(amplitude).build()
    }
    #[inline]
    pub fn frequency(&self) -> f64 {
        self.frequency
    }
    #[inline]
    pub fn amplitude(&self) -> f64 {
        self.amplitude
    }
}