#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct McapProtobufTimeseriesOpts {
#[builder(custom(type = super::IngestSource, convert = Box::new))]
#[serde(rename = "source")]
source: Box<super::IngestSource>,
#[builder(custom(type = super::DatasetIngestTarget, convert = Box::new))]
#[serde(rename = "target")]
target: Box<super::DatasetIngestTarget>,
#[builder(custom(type = super::McapChannels, convert = Box::new))]
#[serde(rename = "channelFilter")]
channel_filter: Box<super::McapChannels>,
#[builder(custom(type = super::McapTimestampType, convert = Box::new))]
#[serde(rename = "timestampType")]
timestamp_type: Box<super::McapTimestampType>,
#[builder(default, into)]
#[serde(
rename = "ignoreInvalidTopics",
skip_serializing_if = "Option::is_none",
default
)]
ignore_invalid_topics: Option<bool>,
#[builder(default, into)]
#[serde(
rename = "additionalFileTags",
skip_serializing_if = "Option::is_none",
default
)]
additional_file_tags: Option<
std::collections::BTreeMap<
super::super::super::api::TagName,
super::super::super::api::TagValue,
>,
>,
}
impl McapProtobufTimeseriesOpts {
#[inline]
pub fn source(&self) -> &super::IngestSource {
&*self.source
}
#[inline]
pub fn target(&self) -> &super::DatasetIngestTarget {
&*self.target
}
#[inline]
pub fn channel_filter(&self) -> &super::McapChannels {
&*self.channel_filter
}
#[inline]
pub fn timestamp_type(&self) -> &super::McapTimestampType {
&*self.timestamp_type
}
#[inline]
pub fn ignore_invalid_topics(&self) -> Option<bool> {
self.ignore_invalid_topics.as_ref().map(|o| *o)
}
#[inline]
pub fn additional_file_tags(
&self,
) -> Option<
&std::collections::BTreeMap<
super::super::super::api::TagName,
super::super::super::api::TagValue,
>,
> {
self.additional_file_tags.as_ref().map(|o| &*o)
}
}