nominal-api-conjure 0.1435.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// A layout that renders each channel as a column of a sortable, filterable table.
#[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 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The channels to display, one column each.
    #[inline]
    pub fn column_channels(&self) -> &[super::ValueTableColumnChannel] {
        &*self.column_channels
    }
    /// Client-owned table state. The backend stores and returns it without
    /// interpreting it.
    #[inline]
    pub fn column_table_state(&self) -> Option<&super::ColumnTableState> {
        self.column_table_state.as_ref().map(|o| &**o)
    }
}