pub struct TableHints {
pub columns: Vec<Column>,
pub sortable_columns: Vec<String>,
pub default_sort: Option<(String, SortOrder)>,
pub filterable: bool,
pub page_size: Option<usize>,
pub row_click_enabled: bool,
}Fields§
§columns: Vec<Column>§sortable_columns: Vec<String>§default_sort: Option<(String, SortOrder)>§filterable: bool§page_size: Option<usize>§row_click_enabled: boolImplementations§
Source§impl TableHints
impl TableHints
pub fn new() -> Self
pub fn with_columns(self, columns: Vec<Column>) -> Self
pub fn with_sortable(self, columns: Vec<String>) -> Self
pub fn with_default_sort(self, column: String, order: SortOrder) -> Self
pub const fn filterable(self) -> Self
pub const fn with_page_size(self, size: usize) -> Self
pub const fn with_row_click_enabled(self, enabled: bool) -> Self
Trait Implementations§
Source§impl ArtifactSchema for TableHints
impl ArtifactSchema for TableHints
fn generate_schema(&self) -> JsonValue
Source§impl Clone for TableHints
impl Clone for TableHints
Source§fn clone(&self) -> TableHints
fn clone(&self) -> TableHints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableHints
impl Debug for TableHints
Source§impl Default for TableHints
impl Default for TableHints
Source§fn default() -> TableHints
fn default() -> TableHints
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableHints
impl RefUnwindSafe for TableHints
impl Send for TableHints
impl Sync for TableHints
impl Unpin for TableHints
impl UnwindSafe for TableHints
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