#[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 ValueTableLayoutColumn {
#[builder(default, list(item(type = super::ValueTableColumnChannel)))]
#[serde(rename = "columnChannels", skip_serializing_if = "Vec::is_empty", default)]
column_channels: Vec<super::ValueTableColumnChannel>,
#[builder(
default,
custom(
type = impl
Into<Option<super::ColumnTableState>>,
convert = |v|v.into().map(Box::new)
)
)]
#[serde(
rename = "columnTableState",
skip_serializing_if = "Option::is_none",
default
)]
column_table_state: Option<Box<super::ColumnTableState>>,
}
impl ValueTableLayoutColumn {
#[inline]
pub fn new() -> Self {
Self::builder().build()
}
#[inline]
pub fn column_channels(&self) -> &[super::ValueTableColumnChannel] {
&*self.column_channels
}
#[inline]
pub fn column_table_state(&self) -> Option<&super::ColumnTableState> {
self.column_table_state.as_ref().map(|o| &**o)
}
}