Skip to main content

nominal_api/conjure/objects/timeseries/channelmetadata/api/
get_channel_metadata_request.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 GetChannelMetadataRequest {
16    #[builder(custom(type = super::ChannelIdentifier, convert = Box::new))]
17    #[serde(rename = "channelIdentifier")]
18    channel_identifier: Box<super::ChannelIdentifier>,
19}
20impl GetChannelMetadataRequest {
21    /// Constructs a new instance of the type.
22    #[inline]
23    pub fn new(channel_identifier: super::ChannelIdentifier) -> Self {
24        Self::builder().channel_identifier(channel_identifier).build()
25    }
26    #[inline]
27    pub fn channel_identifier(&self) -> &super::ChannelIdentifier {
28        &*self.channel_identifier
29    }
30}