#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ValueTableFlowCell {
#[builder(custom(type = super::ValueTableCell, convert = Box::new))]
#[serde(rename = "cell")]
cell: Box<super::ValueTableCell>,
#[builder(default, into)]
#[serde(rename = "groupId", skip_serializing_if = "Option::is_none", default)]
group_id: Option<conjure_object::Uuid>,
#[builder(default, into)]
#[serde(rename = "partition", skip_serializing_if = "Option::is_none", default)]
partition: Option<std::collections::BTreeMap<String, String>>,
}
impl ValueTableFlowCell {
#[inline]
pub fn new(cell: super::ValueTableCell) -> Self {
Self::builder().cell(cell).build()
}
#[inline]
pub fn cell(&self) -> &super::ValueTableCell {
&*self.cell
}
#[inline]
pub fn group_id(&self) -> Option<conjure_object::Uuid> {
self.group_id.as_ref().map(|o| *o)
}
#[inline]
pub fn partition(&self) -> Option<&std::collections::BTreeMap<String, String>> {
self.partition.as_ref().map(|o| &*o)
}
}