Skip to main content

nominal_api/conjure/objects/scout/comparisonrun/api/
offset_series_anchor.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    PartialEq,
7    Eq,
8    PartialOrd,
9    Ord,
10    Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct OffsetSeriesAnchor {
16    #[serde(rename = "seriesVariable")]
17    series_variable: super::super::super::channelvariables::api::ChannelVariableName,
18}
19impl OffsetSeriesAnchor {
20    /// Constructs a new instance of the type.
21    #[inline]
22    pub fn new(
23        series_variable: super::super::super::channelvariables::api::ChannelVariableName,
24    ) -> Self {
25        Self::builder().series_variable(series_variable).build()
26    }
27    #[inline]
28    pub fn series_variable(
29        &self,
30    ) -> &super::super::super::channelvariables::api::ChannelVariableName {
31        &self.series_variable
32    }
33}