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 #[builder(into)]
17 #[serde(rename = "channel")]
18 channel: String,
19 #[serde(rename = "type")]
20 type_: super::super::super::super::storage::series::api::NominalDataType,
21}
22impl NominalLocatorTemplate {
23 #[inline]
25 pub fn new(
26 channel: impl Into<String>,
27 type_: super::super::super::super::storage::series::api::NominalDataType,
28 ) -> Self {
29 Self::builder().channel(channel).type_(type_).build()
30 }
31 #[inline]
32 pub fn channel(&self) -> &str {
33 &*self.channel
34 }
35 #[inline]
36 pub fn type_(
37 &self,
38 ) -> &super::super::super::super::storage::series::api::NominalDataType {
39 &self.type_
40 }
41}