nominal_api/conjure/objects/ingest/api/
mcap_channel_config.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 McapChannelConfig {
16 #[builder(
17 custom(type = super::super::super::api::McapChannelLocator, convert = Box::new)
18 )]
19 #[serde(rename = "locator")]
20 locator: Box<super::super::super::api::McapChannelLocator>,
21 #[builder(custom(type = super::McapChannelConfigType, convert = Box::new))]
22 #[serde(rename = "channelType")]
23 channel_type: Box<super::McapChannelConfigType>,
24}
25impl McapChannelConfig {
26 #[inline]
28 pub fn new(
29 locator: super::super::super::api::McapChannelLocator,
30 channel_type: super::McapChannelConfigType,
31 ) -> Self {
32 Self::builder().locator(locator).channel_type(channel_type).build()
33 }
34 #[inline]
35 pub fn locator(&self) -> &super::super::super::api::McapChannelLocator {
36 &*self.locator
37 }
38 #[inline]
39 pub fn channel_type(&self) -> &super::McapChannelConfigType {
40 &*self.channel_type
41 }
42}