pub struct TableSource {
pub columns: Vec<TableColumn>,
pub repeat_header: bool,
pub group_by: Option<String>,
pub total_fields: Vec<String>,
pub conditional_styles: Vec<TableStyleRuleSource>,
pub auto_sample_rows: usize,
pub max_rows: Option<u64>,
pub max_row_fields: Option<usize>,
pub max_cell_bytes: Option<usize>,
pub header_height: Length,
pub row_height: Option<Length>,
}Expand description
Declarative first-class table options.
Fields§
§columns: Vec<TableColumn>Columns in stable visual order.
repeat_header: boolRepeat the header on continuation pages.
group_by: Option<String>Optional grouping field.
total_fields: Vec<String>Exact numeric total fields.
conditional_styles: Vec<TableStyleRuleSource>Ordered conditional row styles.
auto_sample_rows: usizeMaximum rows sampled for auto columns.
max_rows: Option<u64>Optional stricter row limit.
max_row_fields: Option<usize>Optional stricter field-count limit per row.
max_cell_bytes: Option<usize>Optional stricter displayed byte limit per cell.
header_height: LengthHeader height.
row_height: Option<Length>Fixed row height or auto for measured rows.
Trait Implementations§
Source§impl Clone for TableSource
impl Clone for TableSource
Source§fn clone(&self) -> TableSource
fn clone(&self) -> TableSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TableSource
impl Debug for TableSource
Source§impl<'de> Deserialize<'de> for TableSource
impl<'de> Deserialize<'de> for TableSource
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 TableSource
impl PartialEq for TableSource
Source§impl Serialize for TableSource
impl Serialize for TableSource
impl StructuralPartialEq for TableSource
Auto Trait Implementations§
impl Freeze for TableSource
impl RefUnwindSafe for TableSource
impl Send for TableSource
impl Sync for TableSource
impl Unpin for TableSource
impl UnsafeUnpin for TableSource
impl UnwindSafe for TableSource
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<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.