pub struct SlicerConfig {
pub name: String,
pub cell: String,
pub table_name: String,
pub column_name: String,
pub caption: Option<String>,
pub style: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub show_caption: Option<bool>,
pub column_count: Option<u32>,
}Expand description
Configuration for adding a slicer to a table.
Fields§
§name: StringUnique slicer name.
cell: StringAnchor cell (top-left corner of the slicer, e.g. “F1”).
table_name: StringSource table name.
column_name: StringColumn name from the table to filter.
caption: Option<String>Caption displayed on the slicer header. Defaults to column_name.
style: Option<String>Slicer visual style (e.g. “SlicerStyleLight1”).
width: Option<u32>Width in pixels. Defaults to 200.
height: Option<u32>Height in pixels. Defaults to 200.
show_caption: Option<bool>Whether to show the caption header.
column_count: Option<u32>Number of columns in the slicer item display.
Trait Implementations§
Source§impl Clone for SlicerConfig
impl Clone for SlicerConfig
Source§fn clone(&self) -> SlicerConfig
fn clone(&self) -> SlicerConfig
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 moreAuto Trait Implementations§
impl Freeze for SlicerConfig
impl RefUnwindSafe for SlicerConfig
impl Send for SlicerConfig
impl Sync for SlicerConfig
impl Unpin for SlicerConfig
impl UnwindSafe for SlicerConfig
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