pub struct TableColumnConfig {
pub name: String,
pub key: Option<String>,
pub width: Option<u32>,
}Expand description
Column configuration for a custom table pane.
Fields§
§name: StringColumn header name
key: Option<String>Key to look up in row data (optional, defaults to name)
width: Option<u32>Optional fixed width in pixels (as integer for Hash/Eq)
Implementations§
Source§impl TableColumnConfig
impl TableColumnConfig
Sourcepub fn with_width(self, width: u32) -> Self
pub fn with_width(self, width: u32) -> Self
Set the width for this column (in pixels).
Trait Implementations§
Source§impl Clone for TableColumnConfig
impl Clone for TableColumnConfig
Source§fn clone(&self) -> TableColumnConfig
fn clone(&self) -> TableColumnConfig
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 moreSource§impl Debug for TableColumnConfig
impl Debug for TableColumnConfig
Source§impl Hash for TableColumnConfig
impl Hash for TableColumnConfig
Source§impl PartialEq for TableColumnConfig
impl PartialEq for TableColumnConfig
impl Eq for TableColumnConfig
impl StructuralPartialEq for TableColumnConfig
Auto Trait Implementations§
impl Freeze for TableColumnConfig
impl RefUnwindSafe for TableColumnConfig
impl Send for TableColumnConfig
impl Sync for TableColumnConfig
impl Unpin for TableColumnConfig
impl UnsafeUnpin for TableColumnConfig
impl UnwindSafe for TableColumnConfig
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<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<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