pub struct Slicer {
pub id: u32,
pub table: String,
pub column: String,
pub caption: String,
pub anchor: Anchor,
pub selected: Option<Vec<String>>,
pub columns: u32,
}Expand description
A slicer: an on-sheet filter widget bound to one column of a table. Clicking its value tiles
sets that column’s FilterCriterion::Values in the sheet’s AutoFilter and re-applies it,
so a slicer is just a visual front-end over the existing filter machinery.
Fields§
§id: u32§table: StringName of the table this slicer filters.
column: StringHeader name of the filtered column within the table.
caption: StringCaption shown in the slicer header (defaults to the column name).
anchor: Anchor§selected: Option<Vec<String>>Selected display values. None means every value (no filter from this slicer); an empty
list means nothing is selected (all rows hidden), matching Excel’s “clear all buttons”.
columns: u32Number of button columns in the layout (Excel default 1).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Slicer
impl<'de> Deserialize<'de> for Slicer
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 StructuralPartialEq for Slicer
Auto Trait Implementations§
impl Freeze for Slicer
impl RefUnwindSafe for Slicer
impl Send for Slicer
impl Sync for Slicer
impl Unpin for Slicer
impl UnsafeUnpin for Slicer
impl UnwindSafe for Slicer
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