#[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 ManifestOutput {
#[serde(rename = "ingestType")]
ingest_type: super::ManifestIngestType,
#[builder(into)]
#[serde(rename = "relativePath")]
relative_path: String,
#[builder(default, map(key(type = String, into), value(type = String, into)))]
#[serde(
rename = "tagColumns",
skip_serializing_if = "std::collections::BTreeMap::is_empty",
default
)]
tag_columns: std::collections::BTreeMap<String, String>,
#[builder(default, into)]
#[serde(rename = "channelPrefix", skip_serializing_if = "Option::is_none", default)]
channel_prefix: Option<String>,
}
impl ManifestOutput {
#[inline]
pub fn new(
ingest_type: super::ManifestIngestType,
relative_path: impl Into<String>,
) -> Self {
Self::builder().ingest_type(ingest_type).relative_path(relative_path).build()
}
#[inline]
pub fn ingest_type(&self) -> &super::ManifestIngestType {
&self.ingest_type
}
#[inline]
pub fn relative_path(&self) -> &str {
&*self.relative_path
}
#[inline]
pub fn tag_columns(&self) -> &std::collections::BTreeMap<String, String> {
&self.tag_columns
}
#[inline]
pub fn channel_prefix(&self) -> Option<&str> {
self.channel_prefix.as_ref().map(|o| &**o)
}
}