nominal_api/conjure/objects/timeseries/metadata/api/
nominal_locator_template.rs1#[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 NominalLocatorTemplate {
16 #[serde(rename = "channel")]
17 channel: super::super::super::super::api::Channel,
18 #[serde(rename = "type")]
19 type_: super::super::super::super::storage::series::api::NominalDataType,
20}
21impl NominalLocatorTemplate {
22 #[inline]
24 pub fn new(
25 channel: super::super::super::super::api::Channel,
26 type_: super::super::super::super::storage::series::api::NominalDataType,
27 ) -> Self {
28 Self::builder().channel(channel).type_(type_).build()
29 }
30 #[inline]
31 pub fn channel(&self) -> &super::super::super::super::api::Channel {
32 &self.channel
33 }
34 #[inline]
35 pub fn type_(
36 &self,
37 ) -> &super::super::super::super::storage::series::api::NominalDataType {
38 &self.type_
39 }
40}