nominal_api/conjure/objects/ingest/api/
mcap_protobuf_timeseries_opts.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 McapProtobufTimeseriesOpts {
16 #[builder(custom(type = super::IngestSource, convert = Box::new))]
17 #[serde(rename = "source")]
18 source: Box<super::IngestSource>,
19 #[builder(custom(type = super::DatasetIngestTarget, convert = Box::new))]
20 #[serde(rename = "target")]
21 target: Box<super::DatasetIngestTarget>,
22 #[builder(custom(type = super::McapChannels, convert = Box::new))]
23 #[serde(rename = "channelFilter")]
24 channel_filter: Box<super::McapChannels>,
25 #[builder(custom(type = super::McapTimestampType, convert = Box::new))]
26 #[serde(rename = "timestampType")]
27 timestamp_type: Box<super::McapTimestampType>,
28 #[builder(default, into)]
29 #[serde(
30 rename = "ignoreInvalidTopics",
31 skip_serializing_if = "Option::is_none",
32 default
33 )]
34 ignore_invalid_topics: Option<bool>,
35 #[builder(default, into)]
36 #[serde(
37 rename = "additionalFileTags",
38 skip_serializing_if = "Option::is_none",
39 default
40 )]
41 additional_file_tags: Option<
42 std::collections::BTreeMap<
43 super::super::super::api::TagName,
44 super::super::super::api::TagValue,
45 >,
46 >,
47}
48impl McapProtobufTimeseriesOpts {
49 #[inline]
50 pub fn source(&self) -> &super::IngestSource {
51 &*self.source
52 }
53 #[inline]
54 pub fn target(&self) -> &super::DatasetIngestTarget {
55 &*self.target
56 }
57 #[inline]
58 pub fn channel_filter(&self) -> &super::McapChannels {
59 &*self.channel_filter
60 }
61 #[inline]
62 pub fn timestamp_type(&self) -> &super::McapTimestampType {
63 &*self.timestamp_type
64 }
65 #[inline]
68 pub fn ignore_invalid_topics(&self) -> Option<bool> {
69 self.ignore_invalid_topics.as_ref().map(|o| *o)
70 }
71 #[inline]
73 pub fn additional_file_tags(
74 &self,
75 ) -> Option<
76 &std::collections::BTreeMap<
77 super::super::super::api::TagName,
78 super::super::super::api::TagValue,
79 >,
80 > {
81 self.additional_file_tags.as_ref().map(|o| &*o)
82 }
83}