Skip to main content

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

1/// y = a * x^b
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    conjure_object::private::DeriveWith,
8    Copy
9)]
10#[serde(crate = "conjure_object::serde")]
11#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
12#[conjure_object::private::staged_builder::staged_builder]
13#[builder(crate = conjure_object::private::staged_builder, update, inline)]
14pub struct PowerResultDetails {
15    #[serde(rename = "a")]
16    #[derive_with(with = conjure_object::private::DoubleWrapper)]
17    a: f64,
18    #[serde(rename = "b")]
19    #[derive_with(with = conjure_object::private::DoubleWrapper)]
20    b: f64,
21}
22impl PowerResultDetails {
23    /// Constructs a new instance of the type.
24    #[inline]
25    pub fn new(a: f64, b: f64) -> Self {
26        Self::builder().a(a).b(b).build()
27    }
28    #[inline]
29    pub fn a(&self) -> f64 {
30        self.a
31    }
32    #[inline]
33    pub fn b(&self) -> f64 {
34        self.b
35    }
36}