pub struct SortField {
pub(crate) options: SortOptions,
pub(crate) data_type: DataType,
}
Expand description
Configure the data type and sort order for a given column
Fields§
§options: SortOptions
Sort options
data_type: DataType
Data type
Implementations§
Source§impl SortField
impl SortField
Sourcepub fn new_with_options(data_type: DataType, options: SortOptions) -> Self
pub fn new_with_options(data_type: DataType, options: SortOptions) -> Self
Create a new column with the given data type and [SortOptions
]
Trait Implementations§
impl Eq for SortField
impl StructuralPartialEq for SortField
Auto Trait Implementations§
impl Freeze for SortField
impl RefUnwindSafe for SortField
impl Send for SortField
impl Sync for SortField
impl Unpin for SortField
impl UnwindSafe for SortField
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more