pub struct BooleanColumn<M> { /* private fields */ }Expand description
A column of a bool field rendered as an icon.
tablo_core::BooleanColumn::new(tablo_core::lens!(Post.featured)).sortable();Implementations§
Source§impl<M> BooleanColumn<M>where
M: Model,
impl<M> BooleanColumn<M>where
M: Model,
Sourcepub fn width(self, width: ColumnWidth) -> Self
pub fn width(self, width: ColumnWidth) -> Self
Declare this column’s width.
Trait Implementations§
Source§impl<M> Clone for BooleanColumn<M>
impl<M> Clone for BooleanColumn<M>
Source§impl<M> Column<M> for BooleanColumn<M>
impl<M> Column<M> for BooleanColumn<M>
Source§fn column_width(&self) -> ColumnWidth
fn column_width(&self) -> ColumnWidth
The width the column claims.
Source§fn is_sortable(&self) -> bool
fn is_sortable(&self) -> bool
Whether the header links to a sort on this column.
Source§fn order_by(&self, descending: bool) -> Option<OrderByExpr>
fn order_by(&self, descending: bool) -> Option<OrderByExpr>
The ordering a sort on this column applies.
Source§fn is_searchable(&self) -> bool
fn is_searchable(&self) -> bool
Whether the column joins the table’s search.
Source§impl<M> Debug for BooleanColumn<M>
impl<M> Debug for BooleanColumn<M>
impl<M> IntoColumns<M> for BooleanColumn<M>
Auto Trait Implementations§
impl<M> Freeze for BooleanColumn<M>
impl<M> RefUnwindSafe for BooleanColumn<M>
impl<M> Send for BooleanColumn<M>
impl<M> Sync for BooleanColumn<M>
impl<M> Unpin for BooleanColumn<M>
impl<M> UnsafeUnpin for BooleanColumn<M>
impl<M> UnwindSafe for BooleanColumn<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more