nominal_api_conjure/conjure/objects/scout/compute/api/
negate.rs1#[derive(
3 Debug,
4 Clone,
5 conjure_object::serde::Serialize,
6 conjure_object::serde::Deserialize,
7 conjure_object::private::DeriveWith,
8 conjure_object::log_safety::derive::LogSafe
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 Negate {
15 #[builder(custom(type = super::NumericSeries, convert = Box::new))]
16 #[serde(rename = "x")]
17 #[assert_is_safe]
18 x: Box<super::NumericSeries>,
19}
20impl Negate {
21 #[inline]
23 pub fn new(x: super::NumericSeries) -> Self {
24 Self::builder().x(x).build()
25 }
26 #[inline]
28 pub fn x(&self) -> &super::NumericSeries {
29 &*self.x
30 }
31}