pub struct TableSpec {
pub columns: Vec<TableColumn>,
pub repeat_header: bool,
pub group_by: Option<String>,
pub total_fields: Vec<String>,
pub conditional_styles: Vec<TableStyleRule>,
pub style_expression_steps: usize,
pub auto_sample_rows: usize,
pub max_rows: u64,
pub max_row_fields: usize,
pub max_cell_bytes: usize,
}Expand description
Pagination and grouping contract for a table.
Fields§
§columns: Vec<TableColumn>Columns in visual order.
repeat_header: boolRepeat header after pagination.
group_by: Option<String>Optional grouping field.
total_fields: Vec<String>Fields totaled as exact numeric values.
conditional_styles: Vec<TableStyleRule>Conditional row styles in stable declaration order.
style_expression_steps: usizePer-row expression step budget shared by conditional rules.
auto_sample_rows: usizeMaximum rows sampled for automatic sizing.
max_rows: u64Maximum rows accepted from the dataset.
max_row_fields: usizeMaximum fields accepted in one streamed row.
max_cell_bytes: usizeMaximum displayed bytes accepted in one cell.
Implementations§
Source§impl TableSpec
impl TableSpec
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableSpec
impl<'de> Deserialize<'de> for TableSpec
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
impl Eq for TableSpec
impl StructuralPartialEq for TableSpec
Auto Trait Implementations§
impl Freeze for TableSpec
impl RefUnwindSafe for TableSpec
impl Send for TableSpec
impl Sync for TableSpec
impl Unpin for TableSpec
impl UnsafeUnpin for TableSpec
impl UnwindSafe for TableSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.