pub struct EmbeddedColumn<M, T> { /* private fields */ }Expand description
A column of an EmbeddedForm value.
A detail page shows each of the value’s leaves under its own label; an enum shows its variant’s
name and that variant’s leaves only. A table cell lists the same leaves as label: value.
tablo_core::EmbeddedColumn::new(tablo_core::lens!(Post.seo));The value’s leaves resolve through the app schema, which the column reads when it binds: a
panel binds the declarations it mounts, and Detail::bind binds one
built outside a panel.
Implementations§
Source§impl<M, T> EmbeddedColumn<M, T>where
M: Model,
T: EmbeddedForm,
impl<M, T> EmbeddedColumn<M, T>where
M: Model,
T: EmbeddedForm,
Trait Implementations§
Source§impl<M, T> Clone for EmbeddedColumn<M, T>
impl<M, T> Clone for EmbeddedColumn<M, T>
Source§impl<M, T> Column<M> for EmbeddedColumn<M, T>
impl<M, T> Column<M> for EmbeddedColumn<M, T>
Source§fn column_width(&self) -> ColumnWidth
fn column_width(&self) -> ColumnWidth
The width the column claims.
Source§fn is_searchable(&self) -> bool
fn is_searchable(&self) -> bool
Whether the column joins the table’s search.
Source§fn search_expr(&self, _term: &str) -> Option<Expr<bool>>
fn search_expr(&self, _term: &str) -> Option<Expr<bool>>
The predicate a search for
term adds.Source§fn is_sortable(&self) -> bool
fn is_sortable(&self) -> bool
Whether the header links to a sort on this column.
Source§impl<M, T> Debug for EmbeddedColumn<M, T>
impl<M, T> Debug for EmbeddedColumn<M, T>
impl<M, T> IntoColumns<M> for EmbeddedColumn<M, T>where
Self: Column<M> + 'static,
Source§impl<M, T> IntoDetail<M> for EmbeddedColumn<M, T>where
Self: Column<M> + 'static,
impl<M, T> IntoDetail<M> for EmbeddedColumn<M, T>where
Self: Column<M> + 'static,
fn into_detail(self) -> Detail<M>
Auto Trait Implementations§
impl<M, T> !Freeze for EmbeddedColumn<M, T>
impl<M, T> !RefUnwindSafe for EmbeddedColumn<M, T>
impl<M, T> !UnwindSafe for EmbeddedColumn<M, T>
impl<M, T> Send for EmbeddedColumn<M, T>
impl<M, T> Sync for EmbeddedColumn<M, T>
impl<M, T> Unpin for EmbeddedColumn<M, T>
impl<M, T> UnsafeUnpin for EmbeddedColumn<M, T>where
Lens<M, T>: UnsafeUnpin,
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