pub struct ContentTable {
pub headers: Vec<String>,
pub rows: Vec<Vec<ContentNode>>,
pub border: BorderStyle,
pub max_rows: Option<usize>,
pub column_types: Option<Vec<String>>,
pub total_rows: Option<usize>,
pub sortable: bool,
}Fields§
§headers: Vec<String>§rows: Vec<Vec<ContentNode>>§border: BorderStyle§max_rows: Option<usize>§column_types: Option<Vec<String>>Column type hints: “string”, “number”, “date”, etc.
total_rows: Option<usize>Total row count before truncation (for display: “showing 50 of 1000”).
sortable: boolWhether interactive renderers should enable column sorting.
Trait Implementations§
Source§impl Clone for ContentTable
impl Clone for ContentTable
Source§fn clone(&self) -> ContentTable
fn clone(&self) -> ContentTable
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 ContentTable
impl Debug for ContentTable
Source§impl<'de> Deserialize<'de> for ContentTable
impl<'de> Deserialize<'de> for ContentTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContentTable
impl PartialEq for ContentTable
Source§impl Serialize for ContentTable
impl Serialize for ContentTable
impl StructuralPartialEq for ContentTable
Auto Trait Implementations§
impl Freeze for ContentTable
impl RefUnwindSafe for ContentTable
impl Send for ContentTable
impl Sync for ContentTable
impl Unpin for ContentTable
impl UnsafeUnpin for ContentTable
impl UnwindSafe for ContentTable
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