pub struct TableStateDiff {
pub column_widths: Option<Vec<f32>>,
pub column_order: Option<Vec<usize>>,
pub sort_column: Option<Option<usize>>,
pub sort_ascending: Option<bool>,
pub column_filters: Option<Vec<String>>,
pub current_page: Option<usize>,
pub page_size: Option<usize>,
pub pinned_columns: Option<usize>,
pub zebra_striping: Option<bool>,
}Expand description
The result of comparing two TableState snapshots.
Useful for efficiently propagating only the changed fields when restoring state across sessions or syncing distributed views.
Fields§
§column_widths: Option<Vec<f32>>New column widths if they changed.
column_order: Option<Vec<usize>>New column order if it changed.
sort_column: Option<Option<usize>>New sort column if it changed (or Some(None) to clear).
sort_ascending: Option<bool>New ascending flag if it changed.
column_filters: Option<Vec<String>>New filter strings if any changed.
current_page: Option<usize>New page number if it changed.
page_size: Option<usize>New page size if it changed.
pinned_columns: Option<usize>New pinned-column count if it changed.
zebra_striping: Option<bool>New zebra-striping flag if it changed.
Trait Implementations§
Source§impl Clone for TableStateDiff
impl Clone for TableStateDiff
Source§fn clone(&self) -> TableStateDiff
fn clone(&self) -> TableStateDiff
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 TableStateDiff
impl Debug for TableStateDiff
Source§impl Default for TableStateDiff
impl Default for TableStateDiff
Source§fn default() -> TableStateDiff
fn default() -> TableStateDiff
Returns the “default value” for a type. Read more
Source§impl PartialEq for TableStateDiff
impl PartialEq for TableStateDiff
Source§fn eq(&self, other: &TableStateDiff) -> bool
fn eq(&self, other: &TableStateDiff) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableStateDiff
Auto Trait Implementations§
impl Freeze for TableStateDiff
impl RefUnwindSafe for TableStateDiff
impl Send for TableStateDiff
impl Sync for TableStateDiff
impl Unpin for TableStateDiff
impl UnsafeUnpin for TableStateDiff
impl UnwindSafe for TableStateDiff
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more