pub struct FileColumn<M> { /* private fields */ }Expand description
A column of a String field holding an uploaded file’s path, rendered as a link to the file.
tablo_core::FileColumn::new(tablo_core::lens!(Doc.path));The cell links a rooted path or an absolute http(s) URL, the same rule a
Field::file control applies, and shows any other value as text.
Implementations§
Source§impl<M> FileColumn<M>where
M: Model,
impl<M> FileColumn<M>where
M: Model,
Trait Implementations§
Source§impl<M> Clone for FileColumn<M>
impl<M> Clone for FileColumn<M>
Source§impl<M> Column<M> for FileColumn<M>
impl<M> Column<M> for FileColumn<M>
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> Debug for FileColumn<M>
impl<M> Debug for FileColumn<M>
impl<M> IntoColumns<M> for FileColumn<M>
Source§impl<M> IntoDetail<M> for FileColumn<M>
impl<M> IntoDetail<M> for FileColumn<M>
fn into_detail(self) -> Detail<M>
Auto Trait Implementations§
impl<M> !Freeze for FileColumn<M>
impl<M> RefUnwindSafe for FileColumn<M>
impl<M> Send for FileColumn<M>
impl<M> Sync for FileColumn<M>
impl<M> Unpin for FileColumn<M>
impl<M> UnsafeUnpin for FileColumn<M>
impl<M> UnwindSafe for FileColumn<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